From 6ba5865f73d18eb48a77499bd00fc187bb317976 Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Mon, 3 Feb 2025 23:36:58 +0530 Subject: [PATCH] chore: Set max upload size value in zod schema to 30 MB. --- frontend/src/components/admin/general/formSchema.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/admin/general/formSchema.js b/frontend/src/components/admin/general/formSchema.js index f37641be..7a33b011 100644 --- a/frontend/src/components/admin/general/formSchema.js +++ b/frontend/src/components/admin/general/formSchema.js @@ -35,8 +35,8 @@ export const formSchema = z.object({ .min(1, { message: 'Max upload file size must be at least 1 MB.' }) - .max(128, { - message: 'Max upload file size cannot exceed 128 MB.' + .max(30, { + message: 'Max upload file size cannot exceed 30 MB.' }), allowed_file_upload_extensions: z.array(z.string()).nullable().default([]).optional() })