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

Properties

contentType?: string

Content-Type of the file

data:
    | Buffer
    | Blob
    | BinaryLike
    | File

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