From db67c20752360a6968b08dd82003a4be316c5721 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 7 Aug 2021 23:04:53 +0200 Subject: [PATCH] increase default banner/icon upload limit from 2mb -> 10mb --- src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.ts b/src/Server.ts index 49bb2398..6d1d5009 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -69,7 +69,7 @@ export class FosscordServer extends Server { this.app.use(CORS); this.app.use(Authentication); - this.app.use(BodyParser({ inflate: true, limit: 1024 * 1024 * 2 })); + this.app.use(BodyParser({ inflate: true, limit: 1024 * 1024 * 10 })); // 2MB const languages = fs.readdirSync(path.join(__dirname, "..", "locales")); const namespaces = fs.readdirSync(path.join(__dirname, "..", "locales", "en")); const ns = namespaces.filter((x) => x.endsWith(".json")).map((x) => x.slice(0, x.length - 5));