diff --git a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php index b7633d8a..74d2f0c1 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php @@ -50,12 +50,12 @@ class DownloadBookingDocumentLogic $zip->close(); header('Content-Type: application/zip'); - header('Content-Disposition: attachment; filename="'.basename($attachment).'"'); header('Content-Length: ' . filesize($attachment)); - flush(); + // download zip readfile($attachment); - // delete file + + // delete after download unlink($attachment); }