Skip to content

Commit cf1117d

Browse files
authored
Merge pull request #743 from ArtemLavrentii/patch-1
fix: Fixed example in README.md
2 parents f4fe9f1 + f8d8920 commit cf1117d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ You can also specify uploading options to multer this way:
535535

536536
```typescript
537537
// to keep code clean better to extract this function into separate file
538-
export const fileUploadOptions = () => {
538+
export const fileUploadOptions = () => ({
539539
storage: multer.diskStorage({
540540
destination: (req: any, file: any, cb: any) => { ...
541541
},
@@ -548,7 +548,7 @@ export const fileUploadOptions = () => {
548548
fieldNameSize: 255,
549549
fileSize: 1024 * 1024 * 2
550550
}
551-
};
551+
});
552552

553553
// use options this way:
554554
@Post("/files")

0 commit comments

Comments
 (0)