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
Don't change fileList when beforeUpload returns false #8299
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8299 +/- ##
=========================================
+ Coverage 83.76% 84% +0.23%
=========================================
Files 209 209
Lines 4226 4270 +44
Branches 1251 1278 +27
=========================================
+ Hits 3540 3587 +47
+ Misses 686 683 -3
Continue to review full report at Codecov.
|
components/upload/Upload.tsx
Outdated
this.onChange({ | ||
file, | ||
fileList, | ||
fileList: nextFileList, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该把 fistList 直接剔除掉。
Updated. |
13e1855
to
8dea36b
Compare
想多了,还是可以的。。 |
I think this issue is not properly fixed for ver 2.13.11, original fileList was replaced by the unacceptable file in onChange callback
|
@kikyousky I found this problem too, do you have any advise? |
Close #8036