Skip to content

StreamUploadOptions

Options for streaming uploads (memory-efficient for large files)

PropertyTypeDescription
cacheControl?stringCache-Control header value
contentType?stringMIME type of the file
metadata?Record<string, string>Custom metadata to attach to the file
onUploadProgress?(progress: UploadProgress) => voidOptional callback to track upload progress
signal?AbortSignalAbortSignal to cancel the upload
upsert?booleanIf true, overwrite existing file at this path