raise payload size limit to 500 MB #395

This commit is contained in:
zadam 2019-01-29 21:19:08 +01:00
parent 60271993eb
commit 5619088c41
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@
}, },
"devDependencies": { "devDependencies": {
"devtron": "1.4.0", "devtron": "1.4.0",
"electron": "4.0.1", "electron": "4.0.3",
"electron-builder": "20.38.4", "electron-builder": "20.38.4",
"electron-compile": "6.4.3", "electron-compile": "6.4.3",
"electron-packager": "13.0.1", "electron-packager": "13.0.1",

View file

@ -39,7 +39,7 @@ app.use((req, res, next) => {
}); });
}); });
app.use(bodyParser.json({limit: '50mb'})); app.use(bodyParser.json({limit: '500mb'}));
app.use(bodyParser.urlencoded({extended: false})); app.use(bodyParser.urlencoded({extended: false}));
app.use(cookieParser()); app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public'))); app.use(express.static(path.join(__dirname, 'public')));