Skip to content

FormDataOptions

Properties

buffer?

optional buffer: boolean

Whether to buffer the file into memory when the second argument is a stream or a file path. It is not really recommended, but helpful when you need to know content-length.

Default

false

Source

src/FormDataOptions.ts:17


filename?

optional filename: string

File name, e.g. ‘my-baby-dog.jpg’

Source

src/FormDataOptions.ts:10


type?

optional type: string

File type, e.g. ‘image/jpeg’

Source

src/FormDataOptions.ts:5