mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
mimetype reading fix
This commit is contained in:
@@ -762,10 +762,8 @@ if (! function_exists('readExifData')) {
|
|||||||
*/
|
*/
|
||||||
function readExifData(string $file): object|null
|
function readExifData(string $file): object|null
|
||||||
{
|
{
|
||||||
$disk = Storage::disk('local');
|
|
||||||
|
|
||||||
$type = get_file_type_from_mimetype(
|
$type = get_file_type_from_mimetype(
|
||||||
$disk->mimeType($file)
|
Storage::mimeType($file)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($type !== 'jpeg') {
|
if ($type !== 'jpeg') {
|
||||||
|
|||||||
Reference in New Issue
Block a user