File-list has multiple values in the upload file upload. How to know the index of the selected value when deleting it?

file-list has multiple values in the upload file upload. How to know the index of the selected value when deleting it


if you are using the deletion that comes with antd, you can listen to the onRemove event, in which the file to be deleted is passed, and then traverse the file-list, with this file to get the index

by matching the file name.
Menu