mirror of
https://github.com/claradex/nativegallery.git
synced 2024-12-22 16:41:04 +03:00
Merge pull request #5 from WerySkok/fix/image-mime-detection
fix(Upload): correct use of explode() function
This commit is contained in:
commit
f2cdfdf5f1
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue