From 33218a7df5c322a64d1720cff278a13d43416830 Mon Sep 17 00:00:00 2001 From: Jannis Nikou Date: Mon, 22 Apr 2024 17:37:33 -0700 Subject: [PATCH] Update Files.php --- src/Files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.php b/src/Files.php index 85a5a95..76bf5aa 100644 --- a/src/Files.php +++ b/src/Files.php @@ -54,7 +54,7 @@ public static function getFileFromBucket(?string $bucket, string $fileId, ?int $ $extension = $mime[1]; $extension = str_replace('jpeg', 'jpg', $extension); - $filePath = $config->get('storage_dir') . $row->id . '.' . $extension; + $filePath = $config->get('storage_dir') . '/' . $row->id . '.' . $extension; if(file_exists($filePath)) { header('Content-Type: ' . $row->mime_type);