fix: svg image file error message fixed

This commit is contained in:
Palanikannan M
2024-09-09 20:27:02 +05:30
parent 16be6ff37d
commit f71ca5802f

View File

@@ -6,7 +6,7 @@ export function isFileValid(file: File): boolean {
const allowedTypes = ["image/jpeg", "image/jpg", "image/png", "image/webp"];
if (!allowedTypes.includes(file.type)) {
alert("Invalid file type. Please select a JPEG, JPG, PNG, WEBP, or SVG image file.");
alert("Invalid file type. Please select a JPEG, JPG, PNG, or WEBP image file.");
return false;
}