interface RawFile {
    contentType?: string;
    data:
        | Blob
        | File
        | Buffer
        | BinaryLike;
    key?: string;
    name: string;
}

Properties

contentType?: string

Content-Type of the file

data:
    | Blob
    | File
    | Buffer
    | BinaryLike

The actual data for the file

key?: string

An explicit key to use for key of the formdata field for this file.

name: string

The name of the file