Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UploadRequestOption<T>

Type parameters

  • T = any

Hierarchy

  • UploadRequestOption

Index

Properties

action

action: string

Optional data

data: object

file

file: File

Optional filename

filename: string

Optional headers

method

Optional onAbort

onAbort: (event: UploadRequestError | ProgressEvent<EventTarget>) => void

Type declaration

Optional onError

onError: (event: UploadRequestError | ProgressEvent<EventTarget>, body?: T) => void

Type declaration

Optional onProgress

onProgress: (event: UploadProgressEvent) => void

Type declaration

Optional onSuccess

onSuccess: (body: T, xhr: XMLHttpRequest) => void

Type declaration

    • (body: T, xhr: XMLHttpRequest): void
    • Parameters

      • body: T
      • xhr: XMLHttpRequest

      Returns void

Optional withCredentials

withCredentials: boolean