diff --git a/api/app/Http/Controllers/UtilityController.php b/api/app/Http/Controllers/UtilityController.php index 8cf6549f..ca0540df 100644 --- a/api/app/Http/Controllers/UtilityController.php +++ b/api/app/Http/Controllers/UtilityController.php @@ -1,5 +1,13 @@ has($file)) { + if (! Storage::disk('local')->has($file)) { throw new NotFoundHttpException("file $file not found"); } @@ -27,5 +35,4 @@ public function getSystemInformation() return $this->getResponse() ->item($data); } - }