Skip to content

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

License

Notifications You must be signed in to change notification settings

niketpathak/fileUploadWithSymfonyAndDropzone

Repository files navigation

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 in case you run into any errors.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published