Skip to content

Commit 9acbe8b

Browse files
docs(): a few fixes to the multiple files uploading paragraph
1 parent e8115e9 commit 9acbe8b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

content/openapi/operations.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,12 @@ class FileUploadDto {
136136
}
137137
```
138138

139-
To handle multiple files uploading, you can define `FileUploadDto` as follows:
140-
```
141-
class FileUploadDto {
139+
To handle multiple files uploading, you can define `FilesUploadDto` as follows:
140+
141+
```typescript
142+
class FilesUploadDto {
142143
@ApiProperty({ type: 'array', items: { type: 'string', format: 'binary' } })
143-
file: any;
144+
files: any[];
144145
}
145146
```
146147

0 commit comments

Comments
 (0)