Merge branch 'obernal-max-fields-size-override'
This commit is contained in:
commit
fe3a6771a5
|
@ -49,6 +49,9 @@ function StorageService(options) {
|
||||||
if (options.nameConflict) {
|
if (options.nameConflict) {
|
||||||
this.nameConflict = options.nameConflict;
|
this.nameConflict = options.nameConflict;
|
||||||
}
|
}
|
||||||
|
if (options.maxFieldsSize) {
|
||||||
|
this.maxFieldsSize = options.maxFieldsSize;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function map(obj) {
|
function map(obj) {
|
||||||
|
@ -246,6 +249,8 @@ StorageService.prototype.upload = function(req, res, options, cb) {
|
||||||
}
|
}
|
||||||
if (this.nameConflict && !options.nameConflict) {
|
if (this.nameConflict && !options.nameConflict) {
|
||||||
options.nameConflict = this.nameConflict;
|
options.nameConflict = this.nameConflict;
|
||||||
|
if (this.maxFieldsSize && !options.maxFieldsSize) {
|
||||||
|
options.maxFieldsSize = this.maxFieldsSize;
|
||||||
}
|
}
|
||||||
return handler.upload(this.client, req, res, options, cb);
|
return handler.upload(this.client, req, res, options, cb);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue