设置好上传文件
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@
|
||||
/server/logs/
|
||||
/server/run/
|
||||
/wxmp/src/pages.json
|
||||
/server/tmp/
|
||||
|
||||
@@ -37,5 +37,8 @@ module.exports = {
|
||||
},
|
||||
validate: {
|
||||
convert: true
|
||||
},
|
||||
multipart:{
|
||||
mode: 'file'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
"egg": "^3.9.2",
|
||||
"egg-cors": "^2.2.3",
|
||||
"egg-jwt": "^3.1.7",
|
||||
"egg-multipart": "^3.3.0",
|
||||
"egg-mysql": "^3.3.0",
|
||||
"egg-scripts": "^2.17.0",
|
||||
"egg-validate": "^2.0.2",
|
||||
|
||||
Reference in New Issue
Block a user