sementara

This commit is contained in:
Daeng Deni Mardaeni
2026-01-30 14:44:14 +07:00
parent f402c0831a
commit aceff4f006
29 changed files with 2144 additions and 93 deletions

View File

@@ -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, [