Merge pull request #5 from WerySkok/fix/image-mime-detection

fix(Upload): correct use of explode() function
This commit is contained in:
GeorgNation 2024-07-22 12:58:16 +06:00 committed by GitHub
commit f2cdfdf5f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,7 @@ class Upload
'type' => 'none',
)
);
} else if (explode($type, '/')[0] === 'image') {
} else if (explode('/', $type)[0] === 'image') {
$exif = new EXIF($_FILES['image']['tmp_name']);