this.options is undefined, should use options

This commit is contained in:
Yazhong Liu 2015-04-12 00:24:23 +08:00
parent bddb69e3fc
commit 24f24f12a2
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ exports.upload = function (provider, req, res, options, cb) {
options.maxFileSize = defaultOptions.maxFileSize; options.maxFileSize = defaultOptions.maxFileSize;
} }
var form = new IncomingForm(this.options); var form = new IncomingForm(options);
container = options.container || req.params.container; container = options.container || req.params.container;
var fields = {}, files = {}; var fields = {}, files = {};
form.handlePart = function (part) { form.handlePart = function (part) {