Imperative
How to create a Dropzone upload with JavaScript.
// The constructor of Dropzone accepts two arguments:
//
// 1. The selector for the HTML element that you want to add
// Dropzone to, the second
// 2. An (optional) object with the configuration
let myDropzone = new Dropzone("div#myId", { url: "/file/post"});// The dropzone method is added to jQuery elements and can
// be invoked with an (optional) configuration object.
$("div#myId").dropzone({ url: "/file/post" });Last updated