This commit is contained in:
2017-03-01 23:05:39 +08:00
parent 81b1d59485
commit bb9ea2fb26
2 changed files with 13 additions and 0 deletions

View File

@ -17,6 +17,9 @@ app
.use(KoaBody({
multipart: true,
strict: false,
jsonLimit: '20mb',
formLimit: '10mb',
textLimit: '20mb',
formidable: {
uploadDir: path.join(__dirname, '../assets/uploads')
}