appwrite/app/sdks/python/docs/examples/storage/create-file.md

14 lines
256 B
Markdown
Raw Normal View History

2020-01-30 20:58:49 +00: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], {}, {})