---
title: "Upload File"
method: PUT
path: "/{storageZoneName}/{path}/{fileName}"
tags: ["Manage Files"]
---

# Upload File

`PUT /{storageZoneName}/{path}/{fileName}`

Upload a file to a storage zone based on the URL path. If the directory tree does not exist, it will be created automatically. **The file content should be sent as the body of the request without any type of encoding.**

## Path parameters

- `storageZoneName` string, required
- `path` string, required
- `fileName` string, required

## Headers

- `Checksum` string
- `AccessKey` string, required

## Response `201`

The file upload was successful.

## Other responses

- `400` — Upload failed.

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/revisions/9e622620664b/schema)
