Skip to content

Commit 3649ea3

Browse files
committed
docs(openapi): add explicit type for single file upload
1 parent a19edbe commit 3649ea3

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)