mirror of
https://github.com/appwrite/appwrite
synced 2026-05-02 19:07:18 +00:00
14 lines
256 B
Markdown
14 lines
256 B
Markdown
|
|
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], {}, {})
|