I am making a web chat application that has a feature to drag-drop file and then upload it to the server (I have to make it like whatsapp web which has this feature). I'm using dropzone.js to achieve that and has been working great so far except for one thing. The event 'sending' never get called when dropping image from browser. Here's the example
new Dropzone('.drag-overlay', {
url: "www.example.com",
paramName: "attachment",
init: function() {
this.on("drop", function(e){
console.log("Drop event");
});
this.on("sending", function(file){
console.log("Sending event");
});
}
});
The drop event is called fine but the sending never get called. Can anybody give me a direction how can I send file from another browser using this library?
Thanks