mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-10 00:00:18 +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'];
|
$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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user