Skip to main content
PUT
/
{storageZoneName}
/
{path}
/
{fileName}
Upload File
curl --request PUT \
  --url https://storage.bunnycdn.com/{storageZoneName}/{path}/{fileName} \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/octet-stream' \
  --data '"<string>"'

Authorizations

AccessKey
string
header
required

The storage zone password also doubles as your API key. You can find it in your storage zone details page in the bunny.net dashboard.

Headers

Checksum
string

The SHA256 checksum of the uploaded content. The server will compare the final SHA256 to the checksum and reject the request in case the checksums do not match.

AccessKey
string
required

The API AccessKey used for authentication.

Path Parameters

storageZoneName
string
required

he name of your storage zone where you are connecting to.

path
string
required

The directory path to where your file will be stored. If this is the root of your storage zone, you can ignore this parameter.

fileName
string
required

The name that the file will be uploaded as.

Body

application/octet-stream

Raw request body should contain the contents of the file. This should be raw file data without any sort of encoding.

The body is of type file.

Response

The file upload was successful.