dry-scarletD
Refine2y ago
3 replies
dry-scarlet

How to delete replaced picture in AntD

I know action props is an endpoint to upload the image. OnRemove props will trigred when remove button clicked and i call my delete image endpoint on there. but how to call delete endpoint when the file being replaced when i set maxCount={1}. What i need is to access old file name to sent to my delete endpoint to delete my uploaded image after new file is being added.
Was this page helpful?