Basics
Last updated
Was this helpful?
Last updated
Was this helpful?
In this section we'll co over the fundamentals of configuring Dropzones.
This is what a typical configuration of Dropzone would look like:
For a list of all possible options, refer to the file.
If you want to react to events happening (a file has been added or removed, an upload started, a progress changed, etc...) you want to be listening to events. Checkout the events section for more information on events.
In general you should never have to do this, and you should be familiar with the code if you decide to do it.
You can also override default event handlers. This should be approached with absolute caution since it can break if you upgrade the library and can also remove default functionality that you might not want to lose:
The difference here, is that the default event handler addedfile
has been changed, instead of adding a new event handler with myDropzone.on("addedfile", () => {})