JavaScript: Upload to a signed URL (original) (raw)

Upload a file with a token generated from createSignedUploadUrl.

(Required)
The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.

(Required)
The token generated from `createSignedUploadUrl`

(Required)
The body of the file to be stored in the bucket.

(Optional)
HTTP headers (cacheControl, contentType, etc.). **Note:** The `upsert` option has no effect here. To enable upsert behavior, pass `{ upsert: true }` when calling `createSignedUploadUrl()` instead.