PHPackages                             jupi/dropzonejs-uploader-bundle - 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. jupi/dropzonejs-uploader-bundle

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

jupi/dropzonejs-uploader-bundle
===============================

Symfony bundle to upload files with Dropzone.js

v3.5.0(4mo ago)2245MITPHP

Since Oct 5Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/Jupi007/dropzonejs-uploader-bundle)[ Packagist](https://packagist.org/packages/jupi/dropzonejs-uploader-bundle)[ RSS](/packages/jupi-dropzonejs-uploader-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (15)Used By (0)

Jupi DropzoneJS Uploader Bundle
===============================

[](#jupi-dropzonejs-uploader-bundle)

An ultra simple Symfony bundle to handle [Dropzone.js](https://github.com/dropzone/dropzone) upload request.

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require "jupi/dropzonejs-uploader-bundle"
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require "jupi/dropzonejs-uploader-bundle"
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Jupi\DropzoneJsUploaderBundle\DropzoneJsUploaderBundle::class => ['all' => true],
];
```

Usage
=====

[](#usage)

The way of working of this bundle is very simple. It provides a param converter which handle the current request and pass the uploaded file to the controller

If the request is chunked, a temp file is created inside the system temp folder (using `sys_get_temp_dir()`) and `null` is passed to the controller until the file is entirely uploaded.

I recommend to use [VichUploaderBundle](https://github.com/dustin10/VichUploaderBundle) to handle the database saving side.

```
