Fix render file compatibility with server OS
This commit is contained in:
@@ -84,8 +84,8 @@ class MarhunPhotoService
|
||||
|
||||
$filePath = Storage::disk('marhun')->path("{$directory}${marhunImageFileName}");
|
||||
|
||||
header('Content-Type:' . $imageExtension);
|
||||
header('Content-Length: ' . filesize($filePath));
|
||||
header('Content-Type: ' . mime_content_type($filePath));
|
||||
header('Content-Disposition: inline; filename="'.basename($filePath).'"');
|
||||
readfile($filePath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user