Files
gofilepy/test_upload.py
√(noham)² 9a4c0b1776 Add download support to CLI and client
Implemented file and folder download functionality in the CLI and GofileClient, including new CLI arguments for downloading by URL or content ID and specifying output directory.
2025-12-13 15:44:20 +01:00

7 lines
281 B
Python

from gofilepy import GofileClient
client = GofileClient()
# client = GofileClient(token="YOUR_TOKEN_HERE") # Optional token for private uploads
file = client.upload(file=open("./test_upload.py", "rb"))
print(file.name)
print(file.page_link) # View and download file at this link