From c256dd833a1c223692ec34331e931e905e4c11d7 Mon Sep 17 00:00:00 2001 From: Tzvetan Trave Date: Wed, 22 Oct 2025 20:13:46 +0200 Subject: [PATCH] increased max pfp size --- src/api/user/pAvatar.js | 2 +- src/api/user/uAvatar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/user/pAvatar.js b/src/api/user/pAvatar.js index a49ef02..5b9f3a9 100644 --- a/src/api/user/pAvatar.js +++ b/src/api/user/pAvatar.js @@ -15,7 +15,7 @@ export async function pAvatar(request, reply, fastify, getUserInfo, setAvatarId, size += chunk.length; chunks.push(chunk); } - if (size === 2 * 1024 * 1024 + 1) { + if (size === 5 * 1024 * 1024 + 1) { return reply.code(400).send({ error: "File too large" }); } const buffer = Buffer.concat(chunks); diff --git a/src/api/user/uAvatar.js b/src/api/user/uAvatar.js index b5b8b72..1076e44 100644 --- a/src/api/user/uAvatar.js +++ b/src/api/user/uAvatar.js @@ -16,7 +16,7 @@ export async function uAvatar(request, reply, fastify, getUserInfo, setAvatarId, size += chunk.length; chunks.push(chunk); } - if (size === 2 * 1024 * 1024 + 1) { + if (size === 5 * 1024 * 1024 + 1) { return reply.code(400).send({ error: "File too large" }); } const buffer = Buffer.concat(chunks);