Merge pull request #57 from yorkie/fix/refs

this.options is undefined, should use options
This commit is contained in:
Raymond Feng 2015-04-21 12:58:53 -07:00
commit 5c9cf02a22
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;
}
var form = new IncomingForm(this.options);
var form = new IncomingForm(options);
container = options.container || req.params.container;
var fields = {}, files = {};
form.handlePart = function (part) {