Skip to content

Commit

Permalink
新增配置项 upload_dir ,自定义配置上传目录
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyuan committed Oct 10, 2014
1 parent 06585d4 commit 19b4328
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Lib/Core/Http.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ var Http = module.exports = Class(function(){
var form = this.form = new multiparty.Form({
maxFieldsSize: C('post_max_fields_size'),
maxFields: C('post_max_fields'),
maxFilesSize: C('post_max_file_size')
maxFilesSize: C('post_max_file_size'),
uploadDir: C('upload_dir')
});
form.on('file', function(name, value){
self.http.file[name] = value;
Expand Down

0 comments on commit 19b4328

Please sign in to comment.