Skip to content

Commit

Permalink
Merge pull request #1910 from kevjames3/patch-1
Browse files Browse the repository at this point in the history
Update to docs w.r.t. @uploadedfiles()
  • Loading branch information
kamilmysliwiec committed May 6, 2021
2 parents 04df59e + f83cf6a commit bbbfbd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/techniques/file-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ When using `FilesInterceptor()`, extract files from the `request` with the `@Upl
@@filename()
@Post('upload')
@UseInterceptors(FilesInterceptor('files'))
uploadFile(@UploadedFiles() files: Express.Multer.File) {
uploadFile(@UploadedFiles() files: Array<Express.Multer.File>) {
console.log(files);
}
@@switch
Expand Down Expand Up @@ -110,7 +110,7 @@ When using `AnyFilesInterceptor()`, extract files from the `request` with the `@
@@filename()
@Post('upload')
@UseInterceptors(AnyFilesInterceptor())
uploadFile(@UploadedFiles() files: Express.Multer.File) {
uploadFile(@UploadedFiles() files: Array<Express.Multer.File>) {
console.log(files);
}
@@switch
Expand Down

0 comments on commit bbbfbd0

Please sign in to comment.