We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af0cdf8 commit f8d8920Copy full SHA for f8d8920
README.md
@@ -507,7 +507,7 @@ You can also specify uploading options to multer this way:
507
508
```typescript
509
// to keep code clean better to extract this function into separate file
510
-export const fileUploadOptions = () => {
+export const fileUploadOptions = () => ({
511
storage: multer.diskStorage({
512
destination: (req: any, file: any, cb: any) => { ...
513
},
@@ -520,7 +520,7 @@ export const fileUploadOptions = () => {
520
fieldNameSize: 255,
521
fileSize: 1024 * 1024 * 2
522
}
523
-};
+});
524
525
// use options this way:
526
@Post("/files")
0 commit comments