Last updated on March 29, 2016
In this post I would like to show you, how to upload files with drag and drop interface with dropzone.js in your Laravel/Laravel5 applications.
Dropzone Js
DropzoneJS is an open source library that provides drag`n`drop file uploads with image previews. It’s lightweight, doesn’t depend on any other library (like jQuery) and is highly customizable. Dropzone does not handle your file uploads on the server. You have to implement the code to receive and store the file yourself.
Dropzone Js with Laravel 5
Download dropzone.js from https://github.com/enyo/dropzone, extract the zip copy all files from download folder, and place it in your public/assets or public/resources folder.
Include the DropzoneJS files
Include the DropzoneJS javascript and CSS files in your view:
Install Dropzone on element
Complete view file (resources\views\dropzone_demo.blade.php):