| 229 | | 229 | |
| 230 | // File uploads | 230 | // File uploads |
| 231 | const uploadsPath = path.join(cliArgs.dataRoot, UPLOADS_DIRECTORY); | 231 | const uploadsPath = path.join(cliArgs.dataRoot, UPLOADS_DIRECTORY); |
| 232 | app.use(multer({ dest: uploadsPath, limits: { fieldSize: 10 * 1024 * 1024 } }).single('avatar')); | 232 | app.use(multer({ dest: uploadsPath, limits: { fieldSize: 500 * 1024 * 1024 } }).single('avatar')); |
| 233 | app.use(multerMonkeyPatch); | 233 | app.use(multerMonkeyPatch); |
| 234 | | 234 | |
| 235 | app.get('/version', async function (_, response) { | 235 | app.get('/version', async function (_, response) { |