From 0abdc29c20106a39982d7589149ce451ccbc536c Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 2 Mar 2022 04:14:03 +0800 Subject: [PATCH] download billing documents --- .../Bookings/ControllersLogic/DownloadBookingDocumentLogic.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php index 01d55630..b85bb7f5 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php @@ -49,6 +49,9 @@ class DownloadBookingDocumentLogic $zip->close(); + header('Content-Type: application/zip'); + header('Content-disposition: attachment; filename='.$attachment); + header('Content-Length: ' . filesize($attachment)); readfile($attachment); unlink($attachment);