From eea6dd767c0dc53472047925e6b5a47857846c72 Mon Sep 17 00:00:00 2001 From: Vital Date: Thu, 15 Aug 2024 12:42:56 -0400 Subject: [PATCH] ENG-0000 fix(portal): fix file size message (#638) ## Affected Packages Apps - [x] portal Packages - [ ] 1ui - [ ] api - [ ] protocol - [ ] sdk Tools - [ ] tools ## Overview Found a couple of file size messages/errors that still said 3MB instead of 5MB ## Screen Captures If applicable, add screenshots or screen captures of your changes. ## Declaration - [x] I hereby declare that I have abided by the rules and regulations as outlined in the [CONTRIBUTING.md](https://github.com/0xIntuition/intuition-ts/blob/main/CONTRIBUTING.md) Co-authored-by: Jonathan Prozzi --- apps/portal/app/consts/general.ts | 2 +- apps/portal/app/lib/schemas/update-profile-schema.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/portal/app/consts/general.ts b/apps/portal/app/consts/general.ts index 5112bb5eb..3c0f56798 100644 --- a/apps/portal/app/consts/general.ts +++ b/apps/portal/app/consts/general.ts @@ -29,7 +29,7 @@ export const DEFAULT_LIMIT = 10 // Form constants export const MAX_NAME_LENGTH = 69 export const DESCRIPTION_MAX_LENGTH = 266 -export const MAX_UPLOAD_SIZE = 1024 * 1024 * 5 // 3MB +export const MAX_UPLOAD_SIZE = 1024 * 1024 * 5 // 5MB export const ACCEPTED_IMAGE_MIME_TYPES = [ 'image/jpeg', 'image/jpg', diff --git a/apps/portal/app/lib/schemas/update-profile-schema.ts b/apps/portal/app/lib/schemas/update-profile-schema.ts index 00e3f2310..d6af08d17 100644 --- a/apps/portal/app/lib/schemas/update-profile-schema.ts +++ b/apps/portal/app/lib/schemas/update-profile-schema.ts @@ -26,7 +26,7 @@ export function updateProfileSchema() { .instanceof(File) .refine((file) => { return file.size <= MAX_UPLOAD_SIZE - }, 'File size must be less than 3MB') + }, 'File size must be less than 5MB') .refine((file) => { return ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].includes( file.type,