Share via


InputFile interface

Represents a file input with its content, type, and optional URL.

Properties

content

The content of the file as a Buffer.

contentType

The MIME type of the file content.

contentUrl

An optional URL pointing to the file content.

Property Details

content

The content of the file as a Buffer.

content: Buffer

Property Value

Buffer

contentType

The MIME type of the file content.

contentType: string

Property Value

string

contentUrl

An optional URL pointing to the file content.

contentUrl?: string

Property Value

string