I have to use dropzone.js form, which sends a couple of inputs and a file upload info to the other page.
My dropzone code looks like this -- >
Dropzone.
Alternatively you can create dropzones programmaticaly (even on non form elements) by instantiating the Dropzone class http://www.dropzonejs.com/#toc_4
You need to add the dz-clickable class to your desired element.
HTML
JavaScript
// Dropzone class:
var myDropzone = new Dropzone("div#myDrop", { url: "/file/post"});
// If you use jQuery, you can use the jQuery plugin Dropzone ships with:
$("div#myDrop").dropzone({ url: "/file/post" });
Note
If you receive a console error saying: Dropzone already attached
, make sure to add this line before initiating your new Dropzone object.
Dropzone.autoDiscover = false;