mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-09 07:47:46 +01:00
fix: Correzione ridimensionamento immagini png
This commit is contained in:
parent
f61b0d1a07
commit
2a6f6f42f0
@ -406,7 +406,7 @@ class Upload extends Model
|
||||
|
||||
$filepath = base_dir().'/'.$info['dirname'].'/'.$info['filename'].'.'.$info['extension'];
|
||||
|
||||
if (!in_array(mime_content_type($filepath), ['image/x-png', 'image/gif', 'image/jpeg'])) {
|
||||
if (!in_array(mime_content_type($filepath), ['image/png', 'image/gif', 'image/jpeg'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user