1
0
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:
Beppe 2025-01-15 12:18:07 +01:00
parent f61b0d1a07
commit 2a6f6f42f0

View File

@ -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;
}