Skip to content

Commit

Permalink
bugfix ensureDir with upload root
Browse files Browse the repository at this point in the history
  • Loading branch information
kaven276 committed Mar 12, 2015
1 parent 9d59bda commit 0f7ff26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = function(cfg){
}
rpath = 'auto/' + rpath;
}
util.ensureDir(rpath);
util.ensureDir(cfg.upload_dir + rpath);
file.path = cfg.upload_dir + rpath;
})
.on('file', function(field, file){
Expand Down

0 comments on commit 0f7ff26

Please sign in to comment.