【发布时间】:2017-01-08 06:11:26
【问题描述】:
我打算使用 dropzone 并且我是新手,我正在阅读一些文档
我打算将 dropzone 用于 UI 并使用其他一些 API 上传到服务器,那么我如何告诉 dropzone 使用我的自定义方法并将成功或失败传递给 UI
我发现了一些其他有趣的帖子,比如thisenter link description here
【问题讨论】:
-
在options init函数中我是这样做的,this.on("sending", function(file, xhr, formData){ debugger; saveFiletoServer(file, 'account'); //自定义方法});所以文件是根据需要保存的,但是我如何告诉 Dropzone 文件是成功的,它在 UI 中抛出了一个错误。
标签: dropzone.js