Constructors

  • Parameters

    • source: string
    • chunked: boolean = false
    • size: number
    • file: File

    Returns Upload

Accessors

  • get response(): null | AxiosResponse<any, any>
  • Returns null | AxiosResponse<any, any>

  • set response(response): void
  • Parameters

    • response: null | AxiosResponse<any, any>

    Returns void

  • get signal(): AbortSignal
  • Returns the axios cancel token source

    Returns AbortSignal

  • get uploaded(): number
  • Returns number

  • set uploaded(length): void
  • Update the uploaded bytes of this upload

    Parameters

    • length: number

    Returns void

Methods

  • Cancel any ongoing requests linked to this upload

    Returns void