Merge branch 'afiqhamzah-feat-add-capture-marhun-picture' into 'main'

Fix render file compatibility with server OS

See merge request online-sistem1/lelong!302
This commit is contained in:
Muhamad Amir Hassan Hamzan
2022-11-27 03:32:55 +00:00
+2 -2
View File
@@ -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);
}
}