Skip to content

Commit 618545a

Browse files
Merge branch 'duongle26-patch-1'
2 parents dc771aa + 9acbe8b commit 618545a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/openapi/operations.md

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

139+
To handle multiple files uploading, you can define `FilesUploadDto` as follows:
140+
141+
```typescript
142+
class FilesUploadDto {
143+
@ApiProperty({ type: 'array', items: { type: 'string', format: 'binary' } })
144+
files: any[];
145+
}
146+
```
147+
139148
#### Extensions
140149

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

0 commit comments

Comments
 (0)