Bump multer field size limit Closes #4291

d070982ad7996355e5bf81add94918e82ac7d390

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
src/server-main.js+1 -1
@@ -229,7 +229,7 @@ app.post('/api/ping', (request, response) => {
229229
230// File uploads230// File uploads
231const uploadsPath = path.join(cliArgs.dataRoot, UPLOADS_DIRECTORY);231const uploadsPath = path.join(cliArgs.dataRoot, UPLOADS_DIRECTORY);
232app.use(multer({ dest: uploadsPath, limits: { fieldSize: 10 * 1024 * 1024 } }).single('avatar'));232app.use(multer({ dest: uploadsPath, limits: { fieldSize: 500 * 1024 * 1024 } }).single('avatar'));
233app.use(multerMonkeyPatch);233app.use(multerMonkeyPatch);
234234
235app.get('/version', async function (_, response) {235app.get('/version', async function (_, response) {