mimetype reading fix

This commit is contained in:
Čarodej
2022-04-25 20:03:55 +02:00
parent 68b4722668
commit 110a22d317
+1 -3
View File
@@ -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') {