Upload a file with a token generated from create_signed_upload_url
.
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 `create_signed_upload_url`
The body of the file to be stored in the bucket.
undefined
with open("./public/avatar1.png", "rb") as f:
response = supabase.storage.from_("avatars").upload_to_signed_url(
path="folder/cat.jpg",
token="token-from-create_signed_upload_url",
file=f,
)