Skip to content

DownloadOptions

Property Type Description
signal? AbortSignal AbortSignal to cancel the download
stream? boolean If true, returns a ReadableStream instead of Blob
timeout? number Timeout 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)