Multiple Dropzone.js instances – file uploading into wrong instance
I recently updated my dropzone.js from an old version (2012) to the latest one. I am using this inside my custom PHP CMS to handle image uploads. I have a section in my CMS for managing images. Multiple image forms are displayed on the page, and more image forms can be dynamically added to the page via Ajax. That works fine. However my problem arises when I actually upload a file – the new dropzone.js is strangely adding the file to the wrong dropzone instance.