Skip to content
Discussion options

You must be logged in to vote

In ui.upload you can register a function which is executed for every uploaded file with the on_upload parameter. For the called function a parameter of type nicegui.events.UploadEventArguments is provided. See https://nicegui.io/documentation/upload#show_file_content for a demo where the content of the uploaded file is shown in a dialog. You could also write this content to a file of your choice if you need to store the uploaded data.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by BenjaminTrocme
Comment options

You must be logged in to vote
3 replies
@BenjaminTrocme
Comment options

@BenjaminTrocme
Comment options

@rodja
Comment options

rodja Jan 2, 2024
Maintainer

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants