我已经实现了Dropzonejs来上传文件,我有一个非常简单的问题,如何从框中删除文件,实际上,有一个' X'当您上传文件但它无法点击时。任何想法?
我不允许发布截图,所以这里是一个外部链接:
答案 0 :(得分:0)
在您的配置中添加addRemoveLinks
选项,其值为" dictRemoveFile"
// "myAwesomeDropzone" is the camelized version of the HTML element's ID
Dropzone.options.myAwesomeDropzone = {
paramName: "file",
maxFilesize: 2,
addRemoveLinks: "dictRemoveFile", //this is what you want to add
};