Skip to content

Saving the files locally using uploader #436

Closed Answered by wwwillchen
neelashkannan asked this question in Q&A
Discussion options

You must be logged in to vote

For https://google.github.io/mesop/components/uploader/ - the UploadEvent has a file attribute and you can save that locally using the regular Python way, e.g.

with open(file_path, 'wb') as file:
    file.write(event.file.getvalue())

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wwwillchen
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