dropzone
:action
attribute. The uploaded files can be handled just as if there would have been a html input like this:id
Dropzone.options
dropzone
. If it finds an element, it checks if the element has an id
. If it does, then it converst the id name to camel case (my-dropzone
-> myDropzone
) and checks if there is an entry in Dropzone.options
with that key. If there is, then it uses that configuration object to instantiate the Dropzone for this object.Dropzone.autoDiscover = false;
somewhere in your JS. Just make sure it's invoked before the DOM ready event is dispatched.Dropzone.options.myDropzone = false;
for individual dropzones. This allows you to use the auto discover feature, and only disable it for specific elements.dropzone
class, checks if there is a configuration in Dropzone.options
for it, and then creates a Dropzone instance for that element. If all of that happened, before you defined your configuration, then Dropzone will miss the configuration. So make sure, that your configuration code is reached before Dropzone auto discovers these elements.