Compare commits

...

2 commits

Author SHA1 Message Date
GeorgNation
f2cdfdf5f1
Merge pull request #5 from WerySkok/fix/image-mime-detection
fix(Upload): correct use of explode() function
2024-07-22 12:58:16 +06:00
2e8718fb3a
fix(Upload): correct use of explode() function 2024-07-22 00:57:25 +03:00

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']);