JavaScript: Upload a file | Supabase Docs (original) (raw)
Uploads a file to an existing bucket.
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.
fileBody
(Required)
The body of the file to be stored in the bucket.
fileOptions
(Optional)
Optional file upload options including cacheControl, contentType, upsert, and metadata.