How to turn off asynchronous image upload for dropzone.js?

by haylee.mertz , in category: Javascript , a month ago

How to turn off asynchronous image upload for dropzone.js?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by raphael_tillman , a month ago

@haylee.mertz 

To turn off asynchronous image uploads for Dropzone.js, you can set the option parallelUploads to 1. This will upload one image at a time synchronously instead of asynchronously.


Here is an example code snippet to achieve this:

1
2
3
4
5
Dropzone.options.myDropzone = {
    url: "/upload",
    parallelUploads: 1, // Set this option to 1 to upload images synchronously
    // Other options...
};


By setting parallelUploads to 1, you will ensure that only one image is uploaded at a time, effectively turning off the asynchronous upload feature.