UploadOpts
Defined in: src/http-api/interface.ts:181
Properties
Section titled “Properties”abortController?
Section titled “abortController?”
optionalabortController?:AbortController
Defined in: src/http-api/interface.ts:203
includeFilename?
Section titled “includeFilename?”
optionalincludeFilename?:boolean
Defined in: src/http-api/interface.ts:196
if false will not send the filename, e.g for encrypted file uploads where filename leaks are undesirable. Defaults to true.
optionalname?:string
Defined in: src/http-api/interface.ts:185
Name to give the file on the server. Defaults to file.name.
optionaltype?:string
Defined in: src/http-api/interface.ts:190
Content-type for the upload. Defaults to file.type, or applicaton/octet-stream.
Methods
Section titled “Methods”progressHandler()?
Section titled “progressHandler()?”
optionalprogressHandler(progress):void
Defined in: src/http-api/interface.ts:202
Optional. Called when a chunk of
data has been uploaded, with an object containing the fields loaded
(number of bytes transferred) and total (total size, if known).
Parameters
Section titled “Parameters”progress
Section titled “progress”Returns
Section titled “Returns”void