From b3121ed532858ebc4d3435e2cfc6cb5003e1bb0c Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Wed, 8 Apr 2026 19:58:05 -0400 Subject: [PATCH] refactor: remove strict MIME-type allowlist check from validateImageFile --- src/app/page.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 815ea77..7cbc523 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -28,9 +28,6 @@ const fileToBase64 = (file: File): Promise => }); const validateImageFile = (file: File): string | null => { - if (!IMAGE_MIME_TYPES.includes(file.type)) { - return "Only PNG, JPEG, and WebP images are supported."; - } if (file.size > MAX_IMAGE_SIZE_BYTES) { return "Image must be less than 10MB."; }