How to implement user upload stl file to server? #377
-
Hi,bro. server = get_server() @server.state.change("file_exchange")
if name == "main": |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Replace 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 |
Beta Was this translation helpful? Give feedback.
Replace
print(file.info)
by