设置好上传文件

This commit is contained in:
aixianling
2023-01-16 09:52:01 +08:00
parent 382754cff2
commit 7880f71466
3 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@
/server/logs/
/server/run/
/wxmp/src/pages.json
/server/tmp/

View File

@@ -37,5 +37,8 @@ module.exports = {
},
validate: {
convert: true
},
multipart:{
mode: 'file'
}
}

View 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",