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
Upload组件:beforeUpload上传前检查问题 #8779
Comments
It will be better to write your issue/comment in English, so more people can understand you. |
这是因为 |
I think it's a problem, When |
and if use Promise, reject wont trigger |
|
Duplicate of #8020 |
beforeUpload (file) {
}; |
Version
3.0.3
Environment
win7,chrome63.0.3239.84
Reproduction link
https://codepen.io/LynnHg/pen/YYZdRV
Steps to reproduce
handleBeforeUpload(file) {
const sizeOk = file.size < 1024 * 300;
const typeOk =
file.type === 'image/jpeg' ||
file.type === 'image/png' ||
file.type === 'image/bmp' ||
file.type === 'image/gif';
}
What is expected?
当上传错误格式的照片,提示格式错误,但不显示任何效果
What is actually happening?
当上传错误格式的照片,提示格式错误,但界面上显示了"文件上传中"
The text was updated successfully, but these errors were encountered: