I use Dropzone.js and I want it to upload the dropped not automatically but when the user clicks a button. So I set the autoProcessQueue
option to false
. When the button is clicked the processQueue()
method is called. I would suppose that now the full queue is processed. But thats not the case. Only the number of files which is specified in the parallelUploads
option will be uploaded. The standard value of parallelUploads
seems to be 2. Which every click 2 files are processed and uploaded.
Do I have to set parallelUploads
to an very high number, for now to solve this?
Here's my full JS code:
var myDropzone = new Dropzone("div#myId", {
url: "http://www.torrentplease.com/dropzone.php",
addRemoveLinks: true,
thumbnailWidth: "80",
thumbnailHeight: "80",
dictCancelUpload: "Cancel",
autoProcessQueue: false
});
myDropzone.on("drop", function(event) {
$('.edit_tooltip .option_bar').animate({
opacity: 1,
top: "-5"
});
});
$('.edit_tooltip .option_bar .button').click(function() {
myDropzone.processQueue();
});