mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-12-31 21:56:41 +01:00
increased max pfp size
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user