Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • UploadTask

Index

Properties

_promise: Promise<IAsyncRes<IUploadResult>>
_resolve: ResolveFunc
_client: null | AUpload = null
id: number = ++count

Constructors

Methods

  • abort(): void
  • Returns void

  • _uploadInLoop(uploadUrlList: IUploadUrlInfo[], uploadInfo: IUploadInfo, getFileToken: ((fileType: FileType, fileName?: string, httpMethod?: "POST" | "PUT", queryString?: string, url?: string, size?: number) => Promise<IUploadAuth & { bos: string; qiniu: string; ossConfig: string }>), serverType?: number, failList?: { type: EUploadType; url: string; code: number; msg: undefined | string }[]): Promise<IAsyncRes<IUploadRequestResponse>>
  • Parameters

    • uploadUrlList: IUploadUrlInfo[]
    • uploadInfo: IUploadInfo
    • getFileToken: ((fileType: FileType, fileName?: string, httpMethod?: "POST" | "PUT", queryString?: string, url?: string, size?: number) => Promise<IUploadAuth & { bos: string; qiniu: string; ossConfig: string }>)
        • (fileType: FileType, fileName?: string, httpMethod?: "POST" | "PUT", queryString?: string, url?: string, size?: number): Promise<IUploadAuth & { bos: string; qiniu: string; ossConfig: string }>
        • Parameters

          • fileType: FileType
          • Optional fileName: string
          • Optional httpMethod: "POST" | "PUT"
          • Optional queryString: string
          • Optional url: string
          • Optional size: number

          Returns Promise<IUploadAuth & { bos: string; qiniu: string; ossConfig: string }>

    • Optional serverType: number
    • failList: { type: EUploadType; url: string; code: number; msg: undefined | string }[] = []

    Returns Promise<IAsyncRes<IUploadRequestResponse>>