Skip to content

Commit b08f2b0

Browse files
Merge pull request #3251 from k-kbk/add-explicit-type
docs(openapi): add explicit type for single file upload
2 parents 1167e54 + 3649ea3 commit b08f2b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/openapi/operations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ You can enable file upload for a specific method with the `@ApiBody` decorator t
138138
description: 'List of cats',
139139
type: FileUploadDto,
140140
})
141-
uploadFile(@UploadedFile() file) {}
141+
uploadFile(@UploadedFile() file: Express.Multer.File) {}
142142
```
143143

144144
Where `FileUploadDto` is defined as follows:

0 commit comments

Comments
 (0)