From 6c5e3ee230a84cc6dbb4c8a19e9f958bc451b6a9 Mon Sep 17 00:00:00 2001 From: Stilic <63605602+Stilic@users.noreply.github.com> Date: Wed, 8 Sep 2021 13:34:37 +0200 Subject: Fix upload size --- api/src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/src') diff --git a/api/src/Server.ts b/api/src/Server.ts index 0f444f86..b9ca3fba 100644 --- a/api/src/Server.ts +++ b/api/src/Server.ts @@ -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 -- cgit 1.5.1