We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e610cf9 commit 4d6637bCopy full SHA for 4d6637b
src/controllers/RedirectController.php
@@ -43,7 +43,7 @@ private function responseImageOrFile($file_name)
43
}
44
45
$file = File::get($file_path);
46
- $type = File::mimeType($file_path);
+ $type = parent::getFileType($file_path);
47
48
$response = Response::make($file);
49
$response->header("Content-Type", $type);
src/traits/LfmHelpers.php
@@ -276,7 +276,7 @@ public function getFilesWithInfo($path)
276
$file_name = $this->getName($file);
277
278
if ($this->fileIsImage($file)) {
279
- $file_type = File::mimeType($file);
+ $file_type = $this->getFileType($file);
280
$icon = 'fa-image';
281
} else {
282
$extension = strtolower(File::extension($file_name));
0 commit comments