I have been trying to figure our how to add the queuecomplete callback option to dropzone.js. I read dropzone.js - how to do something after ALL files are uploaded but it shows a couple options, but I do not understand where/how to implement this. I tried adding the code after the reference to dropzone.js, in dropzone.js, etc with no luck. I was just trying to make it simple with the minimal form with the dropzone class.
I tried:
Dropzone.options.filedrop = {
init: function () {
this.on("complete", function (file) {
if (this.getUploadingFiles().length === 0 && this.getQueuedFiles().length === 0) {
doSomething();
}
});
}
};
and also
this.on("queuecomplete", function (file) {
alert("All files have uploaded ");
});
but keep getting Dropzone is not defined.
I think I just need to know how to implement this.