How to turn off asynchronous image upload for drop

2019-08-18 15:46发布

I'm using dropzone.js to upload multiple images:

$('#dropzone_contract_images').dropzone({
    paramName: 'image',
    acceptedFiles: 'image/*'
});

But the problem is that when a user selects various images to upload, dropzone.js sends all requests at the same time, so my server (that has only one processor) sometimes responses with 503 code.

enter image description here

Is there any way to turn off asynchronous image upload dropzone.js in order to make it upload images one by one?

1条回答
Deceive 欺骗
2楼-- · 2019-08-18 15:55

Reading the documentation on their homepage, you need to set two options in your configuration:

autoProcessQueue: true
parallelUploads: 1
查看更多
登录 后发表回答