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,