mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Fix estensioni upload
This commit is contained in:
parent
dd7f5e790f
commit
d0d2be2a98
@ -93,7 +93,7 @@ class FileManager implements ManagerInterface
|
||||
// Anteprime supportate dal browser
|
||||
$extension = pathinfo($r['original'])['extension'];
|
||||
$supported_extensions = ['pdf', 'jpg', 'png', 'gif', 'jpeg', 'bmp'];
|
||||
if (in_array($extension, $supported_extensions)) {
|
||||
if (in_array(strtolower($extension), $supported_extensions)) {
|
||||
$result .= "
|
||||
<div class='hide' id='view-".$r['id']."'>";
|
||||
|
||||
|
@ -147,7 +147,7 @@ class Uploads
|
||||
*/
|
||||
protected static function isSupportedType($extension)
|
||||
{
|
||||
return in_array($extension, array_keys(self::$allowed_types));
|
||||
return in_array(strtolower($extension), array_keys(self::$allowed_types));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user