mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
mimetype hotfix
This commit is contained in:
@@ -762,6 +762,12 @@ if (! function_exists('readExifData')) {
|
|||||||
*/
|
*/
|
||||||
function readExifData(string $file): object|null
|
function readExifData(string $file): object|null
|
||||||
{
|
{
|
||||||
|
$mimetype = Storage::mimeType($file);
|
||||||
|
|
||||||
|
if (!$mimetype) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$type = get_file_type_from_mimetype(
|
$type = get_file_type_from_mimetype(
|
||||||
Storage::mimeType($file)
|
Storage::mimeType($file)
|
||||||
);
|
);
|
||||||
@@ -772,7 +778,7 @@ if (! function_exists('readExifData')) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Try to get the exif data
|
// Try to get the exif data
|
||||||
$data = Image::make($disk->path($file))->exif();
|
$data = Image::make(Storage::path($file))->exif();
|
||||||
|
|
||||||
// Encode data
|
// Encode data
|
||||||
$encodedData = mb_convert_encoding($data, 'UTF8', 'UTF8');
|
$encodedData = mb_convert_encoding($data, 'UTF8', 'UTF8');
|
||||||
|
|||||||
Reference in New Issue
Block a user