JavaScript: Replace an existing file (original) (raw)
Replaces an existing file at the specified path with a new one.
path
(Required)
The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to update.
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.