sementara
This commit is contained in:
@@ -136,6 +136,7 @@
|
||||
$fallbackPath = null;
|
||||
|
||||
// Jika file asli tidak ditemukan, buat fallback path
|
||||
|
||||
if ($statusLpj == 1) {
|
||||
$fullOriginalPath = storage_path('app/public/' . $originalPath);
|
||||
|
||||
@@ -156,10 +157,7 @@
|
||||
|
||||
$resizedPath = resize_image($pathToUse, 800, 400, 25);
|
||||
|
||||
$filePath =
|
||||
$statusLpj == 1
|
||||
? storage_path('app/public/' . $resizedPath)
|
||||
: asset('storage/' . $resizedPath);
|
||||
$filePath = storage_path('app/public/' . $resizedPath);
|
||||
|
||||
$extension = strtolower(pathinfo($pathToUse, PATHINFO_EXTENSION));
|
||||
$isImage = in_array($extension, [
|
||||
|
||||
Reference in New Issue
Block a user