From a3c43af7ba0339c75f4309c0e5cc370e5f9a5c04 Mon Sep 17 00:00:00 2001 From: Peter Papp Date: Sat, 19 Dec 2020 11:49:00 +0100 Subject: [PATCH] - local zip file --- app/Http/Controllers/FileAccessController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/FileAccessController.php b/app/Http/Controllers/FileAccessController.php index a0314120..00bc0b9c 100644 --- a/app/Http/Controllers/FileAccessController.php +++ b/app/Http/Controllers/FileAccessController.php @@ -113,9 +113,9 @@ class FileAccessController extends Controller $header = [ "Content-Type" => 'application/zip', - "Content-Length" => Storage::size($zip_path), + "Content-Length" => Storage::disk('local')->size($zip_path), "Accept-Ranges" => "bytes", - "Content-Range" => "bytes 0-600/" . Storage::size($zip_path), + "Content-Range" => "bytes 0-600/" . Storage::disk('local')->size($zip_path), "Content-Disposition" => "attachment; filename=" . $zip->basename, ]; @@ -139,9 +139,9 @@ class FileAccessController extends Controller $header = [ "Content-Type" => 'application/zip', - "Content-Length" => Storage::size($zip_path), + "Content-Length" => Storage::disk('local')->size($zip_path), "Accept-Ranges" => "bytes", - "Content-Range" => "bytes 0-600/" . Storage::size($zip_path), + "Content-Range" => "bytes 0-600/" . Storage::disk('local')->size($zip_path), "Content-Disposition" => "attachment; filename=" . $zip->basename, ];