diff --git a/app/Http/Controllers/HouseController.php b/app/Http/Controllers/HouseController.php index eae2f38a..ef13dbfd 100644 --- a/app/Http/Controllers/HouseController.php +++ b/app/Http/Controllers/HouseController.php @@ -43,7 +43,7 @@ public function download(House $house) { // TASK: Return the $house->photo file from "storage/app/houses" folder // for download in browser - $filePath = storage_path('app/houses/' . $house->photo); + $filePath = storage_path('app/houses/'); // Check if the file exists if (!Storage::exists('houses/' . $house->photo)) {