Properties
Optional body
body: string | Document | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>
Optional contentType
contentType: string | false
Optional contentTypeDetermination
contentTypeDetermination: false | "header" | "signature" | "full"
Optional customFileSignatures
customFileSignatures: {}
Optional filename
filename: string
Optional forceDesktopMode
forceDesktopMode: boolean
Optional headers
headers: { name: string; value: string }[]
Optional method
Optional nameCallback
nameCallback: (name: string) => string
Type declaration
-
-
Parameters
Returns string
Optional nativeFallbackOnError
nativeFallbackOnError: boolean
Optional onProcess
onProcess: (event: ProgressEvent<EventTarget>) => any
Type declaration
-
- (event: ProgressEvent<EventTarget>): any
-
Parameters
-
event: ProgressEvent<EventTarget>
Returns any
Optional onloadstart
onloadstart: () => void
Optional timeout
timeout: number
Optional url
url: string
Optional withCredentials
withCredentials: boolean
文件下载配置接口