.on(eventName, callbackFunction)
on your Dropzone instance:init
config, which is a function that is invoked when the Dropzone is initialized:function()
syntax instead of the arrow syntax, because otherwise the keyword this
will not reference the Dropzone instance. For more information read up on the difference between the arrow function expression and the function expression.init()
function if you setup your Dropzone declaratively.addedfile
has been changed, instead of adding a new event handler with myDropzone.on("addedfile", () => {})