【发布时间】:2015-10-28 13:29:48
【问题描述】:
我正在寻找一个 dropzone.js 事件,该事件在放置结束后上传之前引发。
我需要的是一次访问有关已删除文件的所有信息,而不是逐个文件,因此 addedfile 事件不是一个选项。
我认为dragend 事件是合适的,但是当我将文件放到我的 dropzone 中时它没有被触发。
我使用的代码 sn-p 如下所示:
Dropzone.options.myDropzone = {
// Prevents Dropzone from uploading dropped files immediately
autoProcessQueue : false,
dictDefaultMessage: "Drop files or click here to upload a new DICOM series ...",
init : function() {
myDropzone = this;
//Restore initial message when queue has been completed
this.on("dragend", function(file) {
console.log("ondragend");
});
}
};
我错过了什么吗? dropzone.js 有没有其他活动为此目的?
【问题讨论】:
标签: javascript events dropzone.js