Skip to main content

Upload a File

Upload a file to the provided path in your site. If you provide a folder path that does not exist, the folder is created automatically. Uploads are atomic, and an interrupted upload cannot be resumed.

Endpoint

POST https://mysite.files.com/api/v2/resources/upload

Replace mysite.files.com with your site address.

Query Parameters

ParameterDescription
pathRequired. The target path you are uploading to.

Request Body

The request body is either a multi-part form submission of a file, or a request body containing only the bytes to be stored sent with the Content-Type: application/octet-stream header.