JavaScript: Upload to a signed URL (original) (raw)
Upload a file with a token generated from createSignedUploadUrl.
path
(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.
token
(Required)
The token generated from `createSignedUploadUrl`
fileBody
(Required)
The body of the file to be stored in the bucket.
fileOptions
(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.