Vote count: 0 I have a dropzone form to upload files, for which the behaviour of the submit button (id=submit-all) is governed by the following javascript part (in order to upload all files once the button is clicked): Dropzone.options.myDropzone = { // Prevents Dropzone from uploading dropped files immediately autoProcessQueue: false, uploadMultiple: true, init: function() { var submitButton = document.querySelector("#submit-all") myDropzone = this; // closure submitButton.addEventListener("click", function() { myDropzone.processQueue(); // Tell Dropzone to process all queued files. }); this.on("queuecomplete", function (file) { if (this.getUploadingFiles().length === 0 && this.getQueuedFil...
ادامه مطلب