From 34e1ff88db323049979fa9e783916b472fe51ebd Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 9 Jul 2024 13:41:50 +0100 Subject: [PATCH] Added StreamedResponse Signed-off-by: snipe --- .../Controllers/Accessories/AccessoriesFilesController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Accessories/AccessoriesFilesController.php b/app/Http/Controllers/Accessories/AccessoriesFilesController.php index a7eec8a057..b63c202d30 100644 --- a/app/Http/Controllers/Accessories/AccessoriesFilesController.php +++ b/app/Http/Controllers/Accessories/AccessoriesFilesController.php @@ -13,6 +13,7 @@ use \Illuminate\Contracts\View\View; use \Illuminate\Http\RedirectResponse; use Illuminate\Support\Facades\Response; use Symfony\Component\HttpFoundation\BinaryFileResponse; +use Symfony\Component\HttpFoundation\StreamedResponse; class AccessoriesFilesController extends Controller { @@ -105,7 +106,7 @@ class AccessoriesFilesController extends Controller * @param int $accessoryId * @param int $fileId */ - public function show($accessoryId = null, $fileId = null, $download = true) : View | RedirectResponse | Response | BinaryFileResponse + public function show($accessoryId = null, $fileId = null, $download = true) : View | RedirectResponse | Response | BinaryFileResponse | StreamedResponse { Log::debug('Private filesystem is: '.config('filesystems.default'));