Saving the files locally using uploader #436
-
can anyone say how to save a file locally using the uploader |
Beta Was this translation helpful? Give feedback.
Answered by
wwwillchen
Jun 18, 2024
Replies: 1 comment
-
For https://google.github.io/mesop/components/uploader/ - the UploadEvent has a with open(file_path, 'wb') as file:
file.write(event.file.getvalue()) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wwwillchen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.