posit-dev / posit-dev/py-shiny
Need a way to update ui.input_file
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 135
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 21
Description
Currently most if not all UI Inputs have a corresponding update function that allows user to modify the component based on some action.
I have a use case where I can update ui.input_file so that the component does not persist the name of the file that was uploaded even after user performs some other action like submit.
I think having a ui.update_input_file method would be welcome.
Currently the only way I can think of is to use the following
ui.insert_ui
ui.remove_ui
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the existing update functions for other UI inputs with the ui.input_file behavior, then review the ui.insert_ui and ui.remove_ui entry points referenced in the issue. The change is complete when a ui.update_input_file method can clear the uploaded filename after an action such as submit without replacing the component.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100