πEvents
let myDropzone = Dropzone("#my-element", { /* options */ });
myDropzone.on("addedfile", file => {
console.log("A file has been added");
});Dropzone.options.myElement = {
// Note: using "function()" here to bind `this` to
// the Dropzone instance.
init: function() {
this.on("addedfile", file => {
console.log("A file has been added");
});
}
};List of all events
Overriding default event handlers
Last updated