大佬教程收集整理的这篇文章主要介绍了使用 maxFiles:1 出错后 dropzone“您无法再上传任何文件”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
发生错误并且 maxfiles 设置为 1 时,dropzone 不会尝试上传其他文件。
它以某种方式认为它已经更新了文件。
$(this.element).dropzone({
maxfiles: 1,createImagethumbnails: false,DictDefaultmessage: '',clickable: true,paramname: this.paramnameValue,url: thiS.UrlValue,method: this.methodValue,init: function() {
this.on("error",(fiLeobject,responsE) => {
let msg
try {
msg = JsON.parse(responsE).join(',')
} catch (E) {
msg = response;
}
console.log('error',msg)
});
}
})
正如@DBS 提到的,我发现解决方案是手动删除文件。
这是它的样子:
$(this.element).dropzone({
// ....
init: this.on("error",(fiLeobject,responsE) => {
this.removeAllFiles();
// ...
});
}
})
以上是大佬教程为你收集整理的使用 maxFiles:1 出错后 dropzone“您无法再上传任何文件”全部内容,希望文章能够帮你解决使用 maxFiles:1 出错后 dropzone“您无法再上传任何文件”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。