|
When creating the Dropzone programmatically the error "Dropzone already attached" appears. |
Answered by
enyo
Feb 8, 2021
Replies: 1 comment 3 replies
|
This is most likely due to the autoDiscover feature of Dropzone. When Dropzone starts, it scans the whole document, and looks for elements with the So you can either:
|
3 replies
Answer selected by
enyo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is most likely due to the autoDiscover feature of Dropzone.
When Dropzone starts, it scans the whole document, and looks for elements with the
dropzoneclass. It then creates an instance of Dropzone for every element found. If you, later on, create a Dropzone instance yourself, you'll create a second Dropzone which causes this error.So you can either:
Dropzone.autoDiscover = false;, orDropzone.options.myAwesomeDropzone = false;