File upload fixes

This commit is contained in:
mrfry 2021-04-06 10:30:32 +02:00
parent cdd01b70de
commit f08079ba84
6 changed files with 178 additions and 56 deletions

View file

@ -21,7 +21,7 @@
// package requires
import express from 'express'
import bodyParser from 'body-parser'
import busboy from 'connect-busboy'
import fileUpload from 'express-fileupload'
// other requires
import logger from '../../utils/logger'
@ -86,10 +86,8 @@ function GetApp(): ModuleType {
app.use(express.static(pdir))
})
app.use(
busboy({
limits: {
fileSize: 50000 * 1024 * 1024,
},
fileUpload({
limits: { fileSize: 50 * 1024 * 1024 },
})
)