-
-
Notifications
You must be signed in to change notification settings - Fork 50.9k
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 /> to upload unsupported files, method beforeUpload return false, then fileList is mistakenly bleached #8036
Comments
@afc163 after beforeUpload return false, we just pass fileList to developers: ant-design/components/upload/Upload.tsx Lines 226 to 232 in 9583bb4
I think we should concat the fileList with ant-design/components/upload/Upload.tsx Lines 80 to 103 in 9583bb4
|
me too. when will it be fixed? |
I meet the same problem,hope this will be fixed soon~ |
Now i meet the same problem when beforeUpload return false ,the fileList turns into a wrong fileList that contain only type errors , my solution is to add a flag in the wrong file , and when return false ,do not change the fileList in handleChange
|
Version
2.13.1
Environment
MAC/WIN chrome 61.0
Reproduction link
https://codepen.io/funya/pen/pdzaRB?&editors=001
Steps to reproduce
Under ver.2.13, when use to upload unsupported files, method beforeUpload return false, then fileList is mistakenly bleached. The same problem is not detected under ver.2.12
What is expected?
Unsupported don't replace and empty the fileList
What is actually happening?
Unsupported files empty the fileList and replace it
The text was updated successfully, but these errors were encountered: