I use jQuery to work with dropzone. e.g.
$("#mydropzone").dropzone({ /*options*/ });
I need to get the Dropzone instance so I can call this method:
myDropzone.processQueue()
How can I achieve this? Is it possible?
in other words, how can I initialise drop zone using
$("#mydropzone").dropzone({ url: "/file/post" });
but at the same time get the instance of the object as if i initialise it using:
var myDropzone = new Dropzone("#mydropzone", { url: "/file/post"});
so I may call:
myDropzone.processQueue()
Thank you very much.
As described in issue #180
You can also use the built in Dropzone.forElement
function.
var myDropzone = Dropzone.forElement("#mydropzone");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With