Skip to content
Discussion options

You must be logged in to vote

Replace print(file.info)

by

from pathlib inport Path

my_file = Path(__file__).with_name(file.name)
my_file.write_binary(file.content)
# now you have the file on the server

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chaoyangxiao
Comment options

Answer selected by chaoyangxiao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants