Skip to content

文件夹验证是否存在bug #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xieyuxaing opened this issue Jan 12, 2018 · 1 comment
Closed

文件夹验证是否存在bug #20

xieyuxaing opened this issue Jan 12, 2018 · 1 comment

Comments

@xieyuxaing
Copy link

@files-submitted="filesAdd"

filesAdd(fileList){
console.log("2222222");
console.log(fileList);
for(var f in fileList){
if(fileList[f].size > 5 * 1024){
this.$message({
message: '存在单文件5K以上文件,请重新选择文件!',
type: 'error',
duration: 2000
});
break;
}
}
for(var n in fileList){
fileList[n].ignored = true;
}
}

还是可以继续上传

@dolymood
Copy link
Member

目前只存在于对 file-added 的处理,暂时还没对 files-added 做处理。

这个我后续改下,如果着急的话,可以先用 file-added 处理

dolymood added a commit that referenced this issue Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants