原因:3.5 版本的 attachmentSimple 组件上传的图片和txt文件,点击的时候只能预览,不能下载!如果想改回以前版本实现下载!如下修改
解决方案:目前可以修改组件代码/UI2/system/components/justep/attachment/attachmentSimple.js 修改后执行\tools\dist\dist.bat合并资源!
downloadFile:function(realFileName,storeFileName,ownerID){ var url = this.getFileUrl(realFileName,storeFileName,ownerID,"browse"); fileApi.browse(url); },
修改代码:
this.getFileUrl(realFileName,storeFileName,ownerID,”browse”);
改成
this.getFileUrl(realFileName,storeFileName,ownerID,”download”);
即可
评一波