An open API service indexing awesome lists of open source software.

https://github.com/niketpathak/fileuploadwithsymfonyanddropzone

Handling file upload with Symfony and a javascript lib like dropzone could not get easier. This tutorial shows the in-depth process of integrating these two
https://github.com/niketpathak/fileuploadwithsymfonyanddropzone

dropzone symfony tutorial

Last synced: 12 months ago
JSON representation

Handling file upload with Symfony and a javascript lib like dropzone could not get easier. This tutorial shows the in-depth process of integrating these two

Awesome Lists containing this project

README

          

## Symfony JS file upload tutorial

### Steps to follow:

1. Checkout this repository.
2. Execute **`composer install`** to install all Php dependencies
3. Execute **`bower install`** to install all JS dependencies
4. Execute **`php bin/console doctrine:schema:validate`** in the console to verify that everything is ok.
5. Execute **`php bin/console doctrine:schema:update --force`** to update the database. You can also use `php bin/console doctine:schema:update --dump-sql`
before this to see the Raw sql queries that will be executed.
6. Navigate to http://yourHost/projectDirectory/web/app_dev.php to test this in action.

Drag-drop any image file in the dropzone to upload it.
The Uploaded file should appear in `web/uploads/` directory.

Follow the detailed tutorial at [DigitalFortress](http://digitalfortress.tech/js/js-file-upload-dropzone-symfony/) in case you run into any errors.