increased max pfp size

This commit is contained in:
Tzvetan Trave committed 2025-10-22 20:13:46 +02:00
1 parent 469e761f8d
commit c256dd833a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ export async function pAvatar(request, reply, fastify, getUserInfo, setAvatarId,
size += chunk.length; size += chunk.length;
chunks.push(chunk); chunks.push(chunk);
} }
if (size === 2 * 1024 * 1024 + 1) { if (size === 5 * 1024 * 1024 + 1) {
return reply.code(400).send({ error: "File too large" }); return reply.code(400).send({ error: "File too large" });
} }
const buffer = Buffer.concat(chunks); const buffer = Buffer.concat(chunks);
+1 -1
View File
@@ -16,7 +16,7 @@ export async function uAvatar(request, reply, fastify, getUserInfo, setAvatarId,
size += chunk.length; size += chunk.length;
chunks.push(chunk); chunks.push(chunk);
} }
if (size === 2 * 1024 * 1024 + 1) { if (size === 5 * 1024 * 1024 + 1) {
return reply.code(400).send({ error: "File too large" }); return reply.code(400).send({ error: "File too large" });
} }
const buffer = Buffer.concat(chunks); const buffer = Buffer.concat(chunks);