Reputation: 656
I'm using Dropzone.js to allow a user to upload some .json files to a web app. These json files are then parsed and used on a different page.
I've got this working using the 'addedfile' event and a FileReader() object.
However, I would like to avoid dropzone trying to upload the files and making a failed POST call to '/undefined'.
How could I achieve this?
Thanks!
Upvotes: 0
Views: 738
Reputation: 12748
You need to set autoProcessQueue
dropzone option to false
. With autoProcessQueue
set to false
dropzone will not upload files independently. Check Dropzone.js documentation for more details.
Upvotes: 1