Merge pull request #17037 from jimjaeger/patch-2

Add preservePath parameter to multer defitition as described https://github.com/expressjs/multer
This commit is contained in:
Yui
2017-06-11 21:35:49 -07:00
committed by GitHub
+3
View File
@@ -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;