download billing documents

This commit is contained in:
omair saleh
2022-03-02 04:14:03 +08:00
parent 446e372345
commit 0abdc29c20
@@ -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);