1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-21 10:11:34 +02:00

Fix upload size

This commit is contained in:
Stilic 2021-09-08 13:34:37 +02:00 committed by GitHub
parent 2d26241a82
commit 0bbb1bad5a

View File

@ -37,7 +37,7 @@ export class FosscordServer extends Server {
await initEvent();
this.app.use(CORS);
this.app.use(BodyParser({ inflate: true, limit: 1024 * 1024 * 10 })); // 10MB
this.app.use(BodyParser({ inflate: true, limit: "10mb" }));
const app = this.app;
const api = Router(); // @ts-ignore