You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @ariunbatb, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!
Hi. I've just found this bug in my project.
In my opinion, if beforeUpload returns false, it shouldn't touch the fileList. Behaviour before this bug #8036 worked as supposed to.
What i want
I want upload only image and show upload list.
Problem
Problem is even if you use "beforeUpload" client still can select wrong extension file.
When you write "beforeUpload" function and uploads wrong extension file it still appear in upload list.
Environment
any
Solution💡
So we need to check extension in "onChange"
handleChange= (info) => {
info.fileList.filter(file => file.type !== "image/jpeg")
.map((file, idx) => info.fileList.splice(idx, 1));
....
}
The text was updated successfully, but these errors were encountered: