The argument file.status of Upload onRemove is always 'removed' #15192
Labels
🐛 Bug
Ant Design Team had proved that this is a bug.
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
Inactive
Reproduction link
Steps to reproduce
click the upload button, select a file, click ok, wait upload complete then delete the file and see the output of the console.
What is expected?
error
What is actually happening?
removed
Usually we clear the resource in the onRemove callback. for example request the server to delete the uploaded file (Which may be not exist because of upload error). So if
file.status
shows the last status, it will help us to decide what should do in the onRemove callback. On the other hand, only whenonRemove
return true, the status should become 'removed'.The text was updated successfully, but these errors were encountered: