mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
File upload fixes
This commit is contained in:
parent
cdd01b70de
commit
f08079ba84
6 changed files with 178 additions and 56 deletions
|
@ -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 },
|
||||
})
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue