Multiple Dropzone on-page, uploading to incorrect dropzone #2293
scottiericho
started this conversation in
General
Replies: 1 comment
-
You can't update a javascript library once a decade and just ask around "what's changed?". But maybe try the maintained fork: https://github.com/NicolasCARPi/dropzone?tab=readme-ov-file#the-new-package-name-is-deltablotdropzone |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Just updated to the newest dropzone after using an old one for many years. Previously we had it working with an unlimited (dynamically added) image upload dropzones in our CMS using a version of dropzone from 2012.
Since upgrading, now when I attach an image to one dropzone, it seemingly uploads to one of the other drop zones on the page. And this is kind of random.
Is there a correct way to handle multiple drop zones on one page with a single javascript? Here is my JS for reference.
Note - clickable: true also didn't work. I had to explicitly declare what class I was clicking. The old version of dropzone worked fine, however.
`function init_image_dropzones() {
here's a screenshot of my CMS - those image forms can be dynamically added to the page, for an undefined/unlimited amount of image forms on the page. As stated - works fine with an old 2012 version of dropzone, but not the new one. What's changed
Beta Was this translation helpful? Give feedback.
All reactions