diff --git a/types/multer/index.d.ts b/types/multer/index.d.ts index 35e71a251d..c1cda87f6b 100644 --- a/types/multer/index.d.ts +++ b/types/multer/index.d.ts @@ -34,6 +34,9 @@ declare namespace multer { parts?: number; /** For multipart forms, the max number of header key=> value pairs to parse Default: 2000(same as node's http). */ headerPairs?: number; + /** Keep the full path of files instead of just the base name (Default: false) */ + preservePath?: boolean; + }; /** A function to control which files to upload and which to skip. */ fileFilter?: (req: Express.Request, file: Express.Multer.File, callback: (error: Error, acceptFile: boolean) => void) => void;