We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4fe9f1 + f8d8920 commit cf1117dCopy full SHA for cf1117d
README.md
@@ -535,7 +535,7 @@ You can also specify uploading options to multer this way:
535
536
```typescript
537
// to keep code clean better to extract this function into separate file
538
-export const fileUploadOptions = () => {
+export const fileUploadOptions = () => ({
539
storage: multer.diskStorage({
540
destination: (req: any, file: any, cb: any) => { ...
541
},
@@ -548,7 +548,7 @@ export const fileUploadOptions = () => {
548
fieldNameSize: 255,
549
fileSize: 1024 * 1024 * 2
550
}
551
-};
+});
552
553
// use options this way:
554
@Post("/files")
0 commit comments