diff --git a/README.md b/README.md index fa8705cb..8b23da15 100644 --- a/README.md +++ b/README.md @@ -507,7 +507,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) => { ... }, @@ -520,7 +520,7 @@ export const fileUploadOptions = () => { fieldNameSize: 255, fileSize: 1024 * 1024 * 2 } -}; +}); // use options this way: @Post("/files")