mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 20:52:42 +01:00
Fix upload size
This commit is contained in:
parent
2d26241a82
commit
0bbb1bad5a
@ -37,7 +37,7 @@ export class FosscordServer extends Server {
|
|||||||
await initEvent();
|
await initEvent();
|
||||||
|
|
||||||
this.app.use(CORS);
|
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 app = this.app;
|
||||||
const api = Router(); // @ts-ignore
|
const api = Router(); // @ts-ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user