Skip to content
post

Create file

Endpoint

posthttps://<REGION>.cloud.appwrite.io/v1/storage/buckets/{bucketId}/files

Description

Required scopes

files.write

Authentication

Initialize the Appwrite client with setProject() and ensure the user is signed in. The SDK sends the session header automatically after login.

Rate limit

Up to 60 requests per minute for each IP address calling this endpoint.
Server API key requests bypass this rate limit.

Path

string
Required

Body

string
Required
string
Required
array
Status
Content type
201
application/json

File

Name
Type
Description
string
string
string
string
arrayof string
string
string
string
integer
integer
integer
HTTP
POST /v1/storage/buckets/{bucketId}/files HTTP/1.1
Host: cloud.appwrite.io
Content-Type: multipart/form-data; boundary="cec8e8123c05ba25"
X-Appwrite-Response-Format: 1.6.0
X-Appwrite-Project: <YOUR_PROJECT_ID>
X-Appwrite-Session:
X-Appwrite-JWT: <YOUR_JWT>
Content-Length: *Length of your entity body in bytes*
--cec8e8123c05ba25
Content-Disposition: form-data; name="fileId"
"<FILE_ID>"
--cec8e8123c05ba25
Content-Disposition: form-data; name="file"
cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc
e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16...
--cec8e8123c05ba25
Content-Disposition: form-data; name="permissions[]"
["read(\"any\")"]
--cec8e8123c05ba25--