From ac14cb96244a816edc35296d74f2f8f413e1613d Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Sun, 21 Sep 2025 20:38:34 +0200 Subject: [PATCH] refactor: increase file size limits --- apps/client/src/common/utils/uploadUtils.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/client/src/common/utils/uploadUtils.ts b/apps/client/src/common/utils/uploadUtils.ts index 95a67365a..6cfd7c39d 100644 --- a/apps/client/src/common/utils/uploadUtils.ts +++ b/apps/client/src/common/utils/uploadUtils.ts @@ -33,8 +33,8 @@ export function validateProjectFile(file: File) { } // Limit file size of a project file to around 1MB - if (file.size > 1_000_000) { - throw new Error('File size limit (1MB) exceeded'); + if (file.size > 2_000_000) { + throw new Error('File size limit (2MB) exceeded'); } } @@ -56,8 +56,8 @@ export function validateLogo(file: File) { throw new Error('File is empty'); } - // Limit file size of a project file to around 1MB - if (file.size > 1_000_000) { - throw new Error('File size limit (1MB) exceeded'); + // Limit file size of a project file to around 1.5MB + if (file.size > 1_500_000) { + throw new Error('File size limit (1.5MB) exceeded'); } }