Skip to content

DownloadOptions

PropertyTypeDescription
signal?AbortSignalAbortSignal to cancel the download
stream?booleanIf true, returns a ReadableStream instead of Blob
timeout?numberTimeout in milliseconds for the download request. For streaming downloads, this applies to the initial response. Set to 0 or undefined for no timeout (recommended for large files). Default undefined (no timeout for streaming, 30000 for non-streaming)