From 110a22d3171b5c8b93630af59860a2471d3df74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=8Carodej?= Date: Mon, 25 Apr 2022 20:03:55 +0200 Subject: [PATCH] mimetype reading fix --- src/Support/helpers.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Support/helpers.php b/src/Support/helpers.php index e1614831..d8550252 100644 --- a/src/Support/helpers.php +++ b/src/Support/helpers.php @@ -762,10 +762,8 @@ if (! function_exists('readExifData')) { */ function readExifData(string $file): object|null { - $disk = Storage::disk('local'); - $type = get_file_type_from_mimetype( - $disk->mimeType($file) + Storage::mimeType($file) ); if ($type !== 'jpeg') {