diff options
author | Stilic <63605602+Stilic@users.noreply.github.com> | 2021-09-08 13:34:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 13:34:37 +0200 |
commit | 0bbb1bad5af7a289d78700d48af482d9339dce6f (patch) | |
tree | a20976687ecef0cbce2bf651af4dc468e7ba199c | |
parent | Update User.ts (diff) | |
download | server-0bbb1bad5af7a289d78700d48af482d9339dce6f.tar.xz |
Fix upload size
-rw-r--r-- | api/src/Server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 |