refactor: remove strict MIME-type allowlist check from validateImageFile

This commit is contained in:
2026-04-08 19:58:05 -04:00
parent d850d88a3a
commit b3121ed532

View File

@@ -28,9 +28,6 @@ const fileToBase64 = (file: File): Promise<string> =>
});
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.";
}