Interface UploadFileConfig

Used to override the default configuration.

interface UploadFileConfig {
    abortSignal?: AbortSignal;
    displayName?: string;
    httpOptions?: HttpOptions;
    mimeType?: string;
    name?: string;
}

Properties

abortSignal?: AbortSignal

Abort signal which can be used to cancel the request.

NOTE: AbortSignal is a client-only operation. Using it to cancel an operation will not cancel the request in the service. You will still be charged usage for any applicable operations.

displayName?: string

Optional display name of the file.

httpOptions?: HttpOptions

Used to override HTTP request options.

mimeType?: string

mime_type: The MIME type of the file. If not provided, it will be inferred from the file extension.

name?: string

The name of the file in the destination (e.g., 'files/sample-image'. If not provided one will be generated.