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

by haylee.mertz , in category: Javascript , 7 months ago

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

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by raphael_tillman , 7 months 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.

Related Threads:

How to change image upload order in dropzone.js?
How to upload a smaller version and the original image in dropzone.js?
How to limit upload files in dropzone.js?
How to upload and delete files from dropzone.js?
How to set upload button in dropzone.js?
How to upload more than 2 files by dropzone.js with button?