diff --git a/lib/storage-handler.js b/lib/storage-handler.js index 2abd4ec..eb9a96f 100644 --- a/lib/storage-handler.js +++ b/lib/storage-handler.js @@ -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) {