Constructors
constructor
- new Upload(source, chunked?, size, file): Upload
Parameters
- source: string
- chunked: boolean = false
- size: number
- file: File
Accessors
chunks
- get chunks(): number
Returns number
file
- get file(): File
Returns File
isChunked
- get isChunked(): boolean
Returns boolean
response
- get response(): null | AxiosResponse<any, any>
Returns null | AxiosResponse<any, any>
- set response(response): void
Parameters
- response: null | AxiosResponse<any, any>
Returns void
signal
- get signal(): AbortSignal
Returns AbortSignal
size
- get size(): number
Returns number
source
- get source(): string
Returns string
startTime
- get startTime(): number
Returns number
status
- get status(): number
Returns number
- set status(status): void
Returns void
uploaded
- get uploaded(): number
Returns number
- set uploaded(length): void
Returns void
Methods
cancel
- cancel(): void
Returns void
Returns the axios cancel token source