Skip to content

ResumableUploadOptions

Options for resumable chunked uploads

PropertyTypeDescription
cacheControl?stringCache-Control header value
chunkSize?numberChunk size in bytes for each upload request. Default 5242880 (5MB)
chunkTimeout?numberTimeout in milliseconds per chunk request. Default 60000 (1 minute)
contentType?stringMIME type of the file
maxRetries?numberNumber of retry attempts per chunk on failure. Default 3
metadata?Record<string, string>Custom metadata to attach to the file
onProgress?(progress: ResumableUploadProgress) => voidCallback for upload progress
resumeSessionId?stringExisting upload session ID to resume (optional)
retryDelayMs?numberBase delay in milliseconds for exponential backoff. Default 1000
signal?AbortSignalAbortSignal to cancel the upload