feat: add onUploadProgress to CustomUploadOptions
This commit is contained in:
parent
b1179a868f
commit
0dd72358da
|
@ -1,4 +1,4 @@
|
||||||
import { AxiosResponse } from "axios";
|
import { AxiosProgressEvent } from "axios";
|
||||||
import { DetailedError, HttpRequest, Upload } from "tus-js-client";
|
import { DetailedError, HttpRequest, Upload } from "tus-js-client";
|
||||||
|
|
||||||
import { blake3 } from "@noble/hashes/blake3";
|
import { blake3 } from "@noble/hashes/blake3";
|
||||||
|
@ -51,6 +51,7 @@ export type CustomUploadOptions = BaseCustomOptions & {
|
||||||
// Large files.
|
// Large files.
|
||||||
largeFileSize?: number;
|
largeFileSize?: number;
|
||||||
retryDelays?: number[];
|
retryDelays?: number[];
|
||||||
|
onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DEFAULT_UPLOAD_OPTIONS = {
|
export const DEFAULT_UPLOAD_OPTIONS = {
|
||||||
|
|
Loading…
Reference in New Issue