This commit is contained in:
apuc committed 2025-06-18 14:50:18 +03:00
1 parent a64ed080bb
commit 4c716a8a8c
160 files changed
+6786 -23

No files matched your search

+8
View File
@@ -125,4 +125,12 @@ class Files
}
}
public static function isImageByExtension($filename): bool
{
$allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp'];
$extension = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
return in_array($extension, $allowedExtensions);
}
}