increased max pfp size

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

View File

@ -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);

View File

@ -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);