Skip to content

export Class

FormDataBuilder ​

extends ​

Builder

Constructor ​

ts
new FormDataBuilder( ...append_datas )
ParameterTypeDescription
...append_datasFormAppendData[]

Methods ​

append( name, path, options ) ​

Append a file to the form.

ParameterTypeDescription
namestringThe name the file will be attached as.
pathstring | "fs".ReadStreamAbsolute path to the file or a readstream.
options?string | FormData.AppendOptionsAdditional options or the name of the file.

Returns: FormDataBuilder