Skip to content

Commit

Permalink
Merge pull request #743 from ArtemLavrentii/patch-1
Browse files Browse the repository at this point in the history
fix: Fixed example in README.md
  • Loading branch information
jotamorais authored Aug 4, 2021
2 parents f4fe9f1 + f8d8920 commit cf1117d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ You can also specify uploading options to multer this way:

```typescript
// to keep code clean better to extract this function into separate file
export const fileUploadOptions = () => {
export const fileUploadOptions = () => ({
storage: multer.diskStorage({
destination: (req: any, file: any, cb: any) => { ...
},
Expand All @@ -548,7 +548,7 @@ export const fileUploadOptions = () => {
fieldNameSize: 255,
fileSize: 1024 * 1024 * 2
}
};
});

// use options this way:
@Post("/files")
Expand Down

0 comments on commit cf1117d

Please sign in to comment.