interface UploadOptions Options of upload.
Properties
signal
readonly signal?: AbortSignal | undefined; Aborts the upload: the call rejects with signal.reason, and the host deletes what it received.
onProgress
readonly onProgress?: ((progress: UploadProgress) => void) | undefined; Called as the content is sent, at most once per browser progress event, and once with everything sent.
name
readonly name?: string | undefined; The file name to report; defaults to the File's name, or upload for another Blob.
type
readonly type?: string | undefined; The media type to report; defaults to the Blob's type, or application/octet-stream.