diff --git a/app/Classes/Modules/Companies/ControllersLogic/BulkDownloadCustomerInvoicesLogic.php b/app/Classes/Modules/Companies/ControllersLogic/BulkDownloadCustomerInvoicesLogic.php index b95c465e..13f7e710 100644 --- a/app/Classes/Modules/Companies/ControllersLogic/BulkDownloadCustomerInvoicesLogic.php +++ b/app/Classes/Modules/Companies/ControllersLogic/BulkDownloadCustomerInvoicesLogic.php @@ -78,8 +78,8 @@ class BulkDownloadCustomerInvoicesLogic $filePath = 'bulk_invoice/'.$zipFileName; Storage::put($filePath, file_get_contents($zip_file), 's3'); - return response()->download(Storage::disk('s3')->path($filePath)); - + $responseContent = Storage::disk('s3')->get($filePath); + return response($responseContent)->header('Content-Type', 'application/zip'); } else { return response()->json([ 'status' => 'Error',