1
0
Fork 0
mirror of synced 2024-09-12 23:53:15 +12:00
appwrite/app/sdks/python/docs/examples/storage/create-file.md

14 lines
256 B
Markdown
Raw Normal View History

2020-01-31 09:58:49 +13:00
from appwrite.client import Client
from appwrite.services.storage import Storage
client = Client()
(client
.set_project('')
.set_key('')
)
storage = Storage(client)
result = storage.create_file(document.getElementById('uploader').files[0], {}, {})