Upload a File
Summary
Upload a file to the provided path in your site. If you provide a folder path that does not exist, it will be created automatically.
Uploads are atomic; it is not possible resume an interrupted upload.
Endpoint
POST https://mysite.files.com/api/v2/resources/upload
Replace mysite.files.com with your site address.
Query parameters
Parameter | Description |
---|---|
path | Required. The target path you are uploading to. |
Request Body
Your request body can either be a multi-part form submission of a file, or you can use the Content-Type: application/octet-stream
header and send a request body that contains only the bytes to be stored.