Skip to content

Interface: UploadOptions ​

Properties ​

onProgress? ​

ts
optional onProgress?: (fraction) => void;

Called with 0..1 as bytes leave the browser; called with 1 once storage accepts the file.

Parameters ​

fraction ​

number

Returns ​

void


signal? ​

ts
optional signal?: AbortSignal;

xhr? ​

ts
optional xhr?: () => UploadXhr;

XMLHttpRequest factory; defaults to the global one.

Returns ​

UploadXhr

Released under the Apache-2.0 License.