mimetype reading fix

This commit is contained in:
Čarodej
2022-04-25 20:03:55 +02:00
parent 68b4722668
commit 110a22d317

View File

@@ -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') {