gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
30.73k stars 2.29k forks source link

Add delete or remove event to `gr.File` #8354

Closed pngwn closed 1 month ago

pngwn commented 1 month ago

Is your feature request related to a problem? Please describe.

We recently fixed an issue where removing a file from a file component would trigger a select event but some people require an event to trigger when a file is removed.

Describe the solution you'd like
A dedicated event, similar to clear, but just for deleting an individual file.

ngaudemet commented 1 month ago

thanks @pngwn , it was missing ! it is not yet on gradio 31.5 but will be in a next version, right ?

pngwn commented 1 month ago

I'll make sure we get this out in the next release.