Replies: 1 comment 1 reply
-
I managed to find a solution: from nicegui import ui
update = ui.upload()
async def reset():
await update.page.run_javascript(f'document.getElementById({update.view.id}).reset()')
ui.button('reset', on_click=reset)
ui.run() For convenience, we will add a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After a file is uploaded, I would like to reset the ui.upload component or at least clear the file name in the component.
Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions