Constructors

Methods

Constructors

Methods

  • Upload media content using a Blob.

    Type Parameters

    • T

    Parameters

    • blob: Blob

      The Blob object to upload.

    • Optional data: object

      Any additional data to pass along to the upload.

    • Optional params: Record<string, any>
    • Optional onUploadProgress: ((progressEvent) => void)
        • (progressEvent): void
        • Parameters

          • progressEvent: AxiosProgressEvent

          Returns void

    Returns AxiosPromise<default<T>>

    promise

  • Upload media content using a File object.

    Type Parameters

    • T

    Parameters

    • file: File

      The file object to upload.

    • Optional data: object

      Any additional data to pass along to the upload.

    • Optional params: Record<string, any>
    • Optional onUploadProgress: ((progressEvent) => void)
        • (progressEvent): void
        • Parameters

          • progressEvent: AxiosProgressEvent

          Returns void

    Returns AxiosPromise<default<T>>

    promise

Generated using TypeDoc