Upload a file with a token generated from createSignedUploadUrl
.
buckets
table permissions: noneobjects
table permissions: noneThe file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
The token generated from `createSignedUploadUrl`
The body of the file to be stored in the bucket.
const \{ data, error \} = await supabase
.storage
.from('avatars')
.uploadToSignedUrl('folder/cat.jpg', 'token-from-createSignedUploadUrl', file)