diff --git a/backend/server/api/community/upload-image.post.ts b/backend/server/api/community/upload-image.post.ts index 520f846..d405be1 100644 --- a/backend/server/api/community/upload-image.post.ts +++ b/backend/server/api/community/upload-image.post.ts @@ -22,10 +22,10 @@ export default defineEventHandler(async (event) => { const ext = contentType === "image/png" ? "png" : "jpg"; const base64 = match[2]; - // Max 5MB check + // Max 10MB check const sizeBytes = Math.ceil((base64.length * 3) / 4); - if (sizeBytes > 5 * 1024 * 1024) { - throw createError({ statusCode: 400, message: "Bild zu groß (max 5MB)" }); + if (sizeBytes > 10 * 1024 * 1024) { + throw createError({ statusCode: 400, message: "Bild zu groß (max 10MB)" }); } const binaryStr = atob(base64);