mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
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:
Vendored
+3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user