From be59329581595d89afae98f43a2d9bbb42083d98 Mon Sep 17 00:00:00 2001 From: matty Date: Thu, 1 Aug 2024 21:17:31 -0400 Subject: [PATCH] from 30 to 800 kb for emojis --- shared/lib/emojis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/lib/emojis.ts b/shared/lib/emojis.ts index 6ea36795..8684d4fd 100644 --- a/shared/lib/emojis.ts +++ b/shared/lib/emojis.ts @@ -5,7 +5,7 @@ // Note: API request body size is limited to 100Kb (expressjs body-parser defaut limit, and Peertube nginx config). // So we must be sure to never send more than 100Kb. The front end sends new emojis by batch, but maxSize must remain // as little as possible, so that we never reach 100Kb in JSON/base64 format. -export const maxSize: number = 30 * 1024 +export const maxSize: number = 800 * 1024 export const allowedExtensions = ['png', 'jpg', 'jpeg', 'gif'] export const inputFileAccept = ['image/jpg', 'image/png', 'image/gif'] export const allowedMimeTypes = ['image/jpg', 'image/png', 'image/gif']