added maxFieldsSize override to formidable limit
This commit is contained in:
parent
7df8f45489
commit
e55595b99e
|
@ -49,6 +49,9 @@ function StorageService(options) {
|
|||
if (options.nameConflict) {
|
||||
this.nameConflict = options.nameConflict;
|
||||
}
|
||||
if (options.maxFieldsSize) {
|
||||
this.maxFieldsSize = options.maxFieldsSize;
|
||||
}
|
||||
}
|
||||
|
||||
function map(obj) {
|
||||
|
@ -247,6 +250,9 @@ StorageService.prototype.upload = function(req, res, options, cb) {
|
|||
if (this.nameConflict && !options.nameConflict) {
|
||||
options.nameConflict = this.nameConflict;
|
||||
}
|
||||
if (this.maxFieldsSize && !options.maxFieldsSize) {
|
||||
options.maxFieldsSize = this.maxFieldsSize;
|
||||
}
|
||||
return handler.upload(this.client, req, res, options, cb);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue