diff --git a/frontend/src/core/components/annotation/shared/ImageUploader.tsx b/frontend/src/core/components/annotation/shared/ImageUploader.tsx index 9b4945100..b031b3ce2 100644 --- a/frontend/src/core/components/annotation/shared/ImageUploader.tsx +++ b/frontend/src/core/components/annotation/shared/ImageUploader.tsx @@ -23,9 +23,9 @@ export const ImageUploader: React.FC = ({ const handleImageChange = async (file: File | null) => { if (file && !disabled) { try { - // Validate that it's actually an image file - if (!file.type.startsWith('image/')) { - console.error('Selected file is not an image'); + // Validate that it's actually an image file or SVG + if (!file.type.startsWith('image/') && !file.name.toLowerCase().endsWith('.svg')) { + console.error('Selected file is not an image or SVG'); return; } @@ -45,7 +45,7 @@ export const ImageUploader: React.FC = ({