js-uploader
Version:
A JavaScript library for file upload
36 lines (35 loc) • 1.09 kB
TypeScript
import { TaskHandler } from './TaskHandler';
import { UploadFile } from '../../interface';
export declare class CommonsTaskHandler extends TaskHandler {
private readonly progressSubject;
private upload$;
private subscription;
private subject;
private uploadFileIDSubject;
private fileSubscriptionMap;
private fileSubscriptionInfoMap;
pause(): this;
resume(): this;
retry(): this;
abort(): this;
pauseFile(...files: UploadFile[]): this;
abortFile(...files: UploadFile[]): this;
handle(): this;
protected handle1(uploadFiles?: UploadFile[]): this;
private executeForResult;
private putNextFile;
private createFileUploadJob;
private createUploadJob;
private uploadFile;
private uploadChunks;
private postChunk;
private sendRequest;
private generateFileChunks;
private getRequestBody;
private prepareRequestParamsForChunk;
private handleProgress;
private putToTaskFileList;
private changeUploadFileStatus;
private changeFileChunkStatus;
private changeUplotaTaskStatus;
}