Skip to content

covenix / Files

Function: Files()

Files(name): ParameterDecorator

Defined in: src/parameters.ts:136

Injects multiple uploaded files from a multipart/form-data request as an array of web-standard Files. Pairs with a z.array(z.file()) field in the @Body schema.

Parameters

name

string

The form field name (an object key in the @Body schema).

Returns

ParameterDecorator