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:
@@ -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 },
|
||||
})
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user