Skip to content

Commit bbbfbd0

Browse files
Merge pull request #1910 from kevjames3/patch-1
Update to docs w.r.t. @uploadedfiles()
2 parents 04df59e + f83cf6a commit bbbfbd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/techniques/file-upload.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ When using `FilesInterceptor()`, extract files from the `request` with the `@Upl
5555
@@filename()
5656
@Post('upload')
5757
@UseInterceptors(FilesInterceptor('files'))
58-
uploadFile(@UploadedFiles() files: Express.Multer.File) {
58+
uploadFile(@UploadedFiles() files: Array<Express.Multer.File>) {
5959
console.log(files);
6060
}
6161
@@switch
@@ -110,7 +110,7 @@ When using `AnyFilesInterceptor()`, extract files from the `request` with the `@
110110
@@filename()
111111
@Post('upload')
112112
@UseInterceptors(AnyFilesInterceptor())
113-
uploadFile(@UploadedFiles() files: Express.Multer.File) {
113+
uploadFile(@UploadedFiles() files: Array<Express.Multer.File>) {
114114
console.log(files);
115115
}
116116
@@switch

0 commit comments

Comments
 (0)