From d3601e3783b70accf4eb1b0e503133ab809e0862 Mon Sep 17 00:00:00 2001 From: jimjaeger Date: Wed, 7 Jun 2017 22:19:41 +0200 Subject: [PATCH] Update index.d.ts Add preservePath parameter as described https://github.com/expressjs/multer --- types/multer/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) 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;