Skip to content

Commit e8115e9

Browse files
duonglehkamilmysliwiec
authored andcommitted
docs(openapi): Add example for multiple files uploading
1 parent dc771aa commit e8115e9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/openapi/operations.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ class FileUploadDto {
136136
}
137137
```
138138

139+
To handle multiple files uploading, you can define `FileUploadDto` as follows:
140+
```
141+
class FileUploadDto {
142+
@ApiProperty({ type: 'array', items: { type: 'string', format: 'binary' } })
143+
file: any;
144+
}
145+
```
146+
139147
#### Extensions
140148

141149
To add an Extension to a request use the `@ApiExtension()` decorator. The extension name must be prefixed with `x-`.

0 commit comments

Comments
 (0)