videosphere
    Preparing search index...

    Options for uploadPartWithRetry.

    interface UploadPartWithRetryOptions {
        url: string;
        blob: Blob;
        contentType: string;
        onProgress: (loaded: number) => void;
        isCancelled: () => boolean;
        setXhr?: (xhr: XMLHttpRequest) => void;
        xhrFactory?: () => XMLHttpRequest;
        sleepFn?: (ms: number) => Promise<void>;
    }
    Index

    Properties

    url: string

    Presigned PUT URL for this part.

    blob: Blob

    Part payload slice.

    contentType: string

    Content-Type header for the part PUT.

    onProgress: (loaded: number) => void

    Called with loaded bytes for the in-flight part.

    isCancelled: () => boolean

    Returns true when the overall upload was cancelled.

    setXhr?: (xhr: XMLHttpRequest) => void

    Tracks the active XHR so callers can abort an in-flight part.

    xhrFactory?: () => XMLHttpRequest

    Factory for XHR instances (defaults to () => new XMLHttpRequest()).

    sleepFn?: (ms: number) => Promise<void>

    Backoff sleep implementation (defaults to sleep).