I am trying to run dropzone by adding a class to the form as follows:
<form class="dropzone ng-pristine ng-valid dz-clickable" id="photoDropzoneDiv" action="/panel/vehicles/3/photos" accept-charset="UTF-8" method="post">
Dropzone now works. Then I set dropzone not to automatically process the queue:
Dropzone.options.photoDropzone = { paramName: "file", // The name that will be used to transfer the file maxFilesize: 5, // MB autoProcessQueue: false, parallelUploads: 500, acceptedFiles: '.jpg,.jpeg,.JPEG,.JPG,.png,.PNG', addRemoveLinks: true, init: function(file, done) { this.on("queuecomplete", function(file) { this.removeAllFiles(); }); } };
Now when I call processQueue as follows:
photoDropzone.processQueue();
It says Uncaught TypeError: photoDropzone.processQueue is not a function . How can i fix this?
THpubs
source share