formidable - maxFileSize prop add (#24689)

* maxFileSize prop add

Add maxFileSize

* maxFileSize prop add

Add maxFileSize property
This commit is contained in:
Alexey 2018-04-09 20:32:54 +03:00 committed by Mohamed Hegazy
parent 0b59f703b5
commit e101bf4971
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ interface ExpressFormidableOptions {
uploadDir?: string;
keepExtensions?: boolean;
type?: "multipart" | "urlencoded";
maxFileSize?: number;
maxFieldsSize?: number;
maxFields?: number;
hash?: boolean | "sha1" | "md5";

View File

@ -14,6 +14,7 @@ export declare class IncomingForm extends events.EventEmitter {
encoding: string;
uploadDir: string;
keepExtensions: boolean;
maxFileSize: number;
maxFieldsSize: number;
maxFields: number;
hash: string | boolean;