From 595408d21f12da1cfb7b07e147254475fc05be76 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 9 Jul 2024 11:54:07 +0100 Subject: [PATCH] On more binaryfile response Signed-off-by: snipe --- app/Http/Controllers/Assets/AssetFilesController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Assets/AssetFilesController.php b/app/Http/Controllers/Assets/AssetFilesController.php index d79afbff66..b5a04759bb 100644 --- a/app/Http/Controllers/Assets/AssetFilesController.php +++ b/app/Http/Controllers/Assets/AssetFilesController.php @@ -12,6 +12,7 @@ use Illuminate\Support\Facades\Storage; use \Illuminate\Contracts\View\View; use \Illuminate\Http\RedirectResponse; use Symfony\Component\HttpFoundation\StreamedResponse; +use Symfony\Component\HttpFoundation\BinaryFileResponse; class AssetFilesController extends Controller { @@ -58,7 +59,7 @@ class AssetFilesController extends Controller * @param int $fileId * @since [v1.0] */ - public function show($assetId = null, $fileId = null) : View | RedirectResponse | Response | StreamedResponse + public function show($assetId = null, $fileId = null) : View | RedirectResponse | Response | StreamedResponse | BinaryFileResponse { $asset = Asset::find($assetId); // the asset is valid