Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delete or remove event to gr.File #8354

Closed
1 task done
pngwn opened this issue May 22, 2024 · 3 comments · Fixed by #8417
Closed
1 task done

Add delete or remove event to gr.File #8354

pngwn opened this issue May 22, 2024 · 3 comments · Fixed by #8417
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pngwn
Copy link
Member

pngwn commented May 22, 2024

  • I have searched to see if a similar issue already exists.

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.

@abidlabs abidlabs added enhancement New feature or request good first issue Good for newcomers labels May 22, 2024
@ngaudemet
Copy link

ngaudemet commented May 24, 2024

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

@pngwn
Copy link
Member Author

pngwn commented May 24, 2024

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

@ngaudemet
Copy link

Hi @pngwn
thanks for your help
I still can't upgrade to newer gradio version (I'm still on 4.29.0) because it seems the introduction of the delete event for File components destroyed the select event for File components. But it is useful as well. Thus I open a new issue.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants