Using Dropzone.js, if I attempt to paste (ctrl+v) a printscreen it does not upload, however if I drag a file the upload works. Can someone help me?
Dropzone.autoDiscover = false;
var dropzone = new Dropzone("form.dropzone", {
dictDefaultMessage: "Arraste uma imagem ou clique aqui"
});
document.onpaste = function(event){
var items = (event.clipboardData || event.originalEvent.clipboardData).items;
for (index in items) {
var item = items[index];
if (item.kind === 'file') {
// adds the file to your dropzone instance
dropzone.addFile(item.getAsFile());
}
}
}