PHPackages                             phloxcz/components-upload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. phloxcz/components-upload

ActiveLibrary[File &amp; Storage](/categories/file-storage)

phloxcz/components-upload
=========================

Resumable chunked file upload UI Control for Nette Framework with drag &amp; drop, progress bars, queue, and Bootstrap/Tailwind theme support.

v1.0.0(3mo ago)01MITPHPPHP ^8.1

Since Mar 22Pushed 3mo agoCompare

[ Source](https://github.com/phloxcz/components-upload)[ Packagist](https://packagist.org/packages/phloxcz/components-upload)[ Docs](https://github.com/phloxcz/components-upload)[ RSS](/packages/phloxcz-components-upload/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

phloxcz/components-upload
=========================

[](#phloxczcomponents-upload)

Resumable chunked file upload UI Control pro **Nette Framework**.

- Drag &amp; drop zóna s fallbackem na klik, plně přístupná klávesnicí
- Resumable upload — přerušený přenos pokračuje od posledního odeslaného chunku
- Progress bar celkového postupu fronty + inline progress bar aktivního souboru
- Fronta souborů, která po dokončení položky vyfaduje
- Frontendové události `pu:uploaded`, `pu:allUploaded`, `pu:progress` na `document`
- Témata Bootstrap 5, Tailwind CSS nebo vlastní mapa CSS tříd
- PHP událost `onUploaded` pro uložení metadat do DB
- Plně lokalizovatelné texty přes `setTexts()`

Požadavky
---------

[](#požadavky)

BalíčekVerzePHP≥ 8.1nette/application≥ 3.1nette/utils≥ 4.0Instalace
---------

[](#instalace)

```
composer require phloxcz/components-upload
```

Quickstart
----------

[](#quickstart)

### 1. Registrace factory v `config.neon`

[](#1-registrace-factory-v-configneon)

```
services:
    - implement: Phlox\Components\Upload\UploadControlFactory
```

### 2. Komponenta v presenteru

[](#2-komponenta-v-presenteru)

```
use Phlox\Components\Upload\UploadControl;
use Phlox\Components\Upload\UploadControlFactory;

class FilePresenter extends Nette\Application\UI\Presenter
{
    public function __construct(
        private readonly UploadControlFactory $uploadFactory,
        private readonly FileRepository $fileRepository,
    ) {}

    protected function createComponentUpload(): UploadControl
    {
        $upload = $this->uploadFactory->create('/var/storage/uploads');

        $upload
            ->setChunkSize(2 * 1024 * 1024)
            ->setMultiple(true)
            ->setMaxFileSize(100 * 1024 * 1024)
            ->setTheme(UploadControl::THEME_BOOTSTRAP);

        $upload->onUploaded[] = function (array $fileInfo): void {
            $this->fileRepository->save([
                'original_name' => $fileInfo['originalName'],
                'stored_name'   => $fileInfo['storedName'],
                'path'          => $fileInfo['path'],
                'size'          => $fileInfo['size'],
                'mime_type'     => $fileInfo['mimeType'],
            ]);
        };

        return $upload;
    }
}
```

### 3. Šablona

[](#3-šablona)

```
{control upload}
```

### 4. Assets

[](#4-assets)

```
// app.js
import 'vendor/phloxcz/components-upload/assets/upload-control.css';
import 'vendor/phloxcz/components-upload/assets/upload-control.js';
```

Dokumentace
-----------

[](#dokumentace)

Podrobná dokumentace je v adresáři [`docs/`](docs/README.md):

- [Konfigurace](docs/README.md#konfigurace)
- [Témata a stylování](docs/README.md#t%C3%A9mata-a-stylov%C3%A1n%C3%AD)
- [Lokalizace textů](docs/README.md#lokalizace-text%C5%AF)
- [PHP události](docs/README.md#php-ud%C3%A1losti)
- [Frontendové události](docs/README.md#frontendov%C3%A9-ud%C3%A1losti)
- [Resumable upload](docs/README.md#resumable-upload)
- [DI Extension](docs/README.md#di-extension)
- [Bezpečnost](docs/README.md#bezpe%C4%8Dnost)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance82

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

93d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1c90a32c18492fe4ad47c3250ea60377f8d824ec2415b64e385c90979cb82c0?d=identicon)[phloxcz](/maintainers/phloxcz)

---

Tags

nettetailwinduploadbootstrapfile-uploadchunked-uploaddrag-dropresumable-uploadnette-component

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phloxcz-components-upload/health.svg)

```
[![Health](https://phpackages.com/badges/phloxcz-components-upload/health.svg)](https://phpackages.com/packages/phloxcz-components-upload)
```

###  Alternatives

[kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

5.3k8.1M13](/packages/kartik-v-bootstrap-fileinput)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)[contributte/image-storage

Image storage for Nette framework

28750.1k1](/packages/contributte-image-storage)[coffeecode/uploader

It is a easy PHP upload manager for images, files and media in your application

71350.7k3](/packages/coffeecode-uploader)[nette/assets

🎨 Nette Assets: elegant asset management for PHP with versioning, caching and mappers for various storage backends.

43379.4k8](/packages/nette-assets)[ublaboo/image-storage

Image storage for Nette framework

2813.7k](/packages/ublaboo-image-storage)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
