JavaScript: Create signed upload URL (original) (raw)

Creates a signed upload URL. Signed upload URLs can be used to upload files to the bucket without further authentication. They are valid for 2 hours.

Parameters

(Required)
The file path, including the current file name. For example `folder/image.png`.

(Optional)

Examples

Create Signed Upload URL

const { data, error } = await supabase
  .storage
  .from('avatars')
  .createSignedUploadUrl('folder/cat.jpg')