v0.1.10
This commit is contained in:
1 parent
2ab819ff30
commit
b86b8ff923
54 files changed
+1512
-672
No files matched your search
@@ -125,12 +125,4 @@ 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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user