download billing documents

This commit is contained in:
omair saleh
2022-03-02 03:59:28 +08:00
parent da6ea1e1c5
commit 917fc249ca
@@ -54,7 +54,7 @@ class DownloadBookingDocumentLogic
if (file_exists($attachment)) {
header('Content-Type: application/zip');
header('Content-disposition: attachment; filename='.$attachment.'.zip');
header('Content-disposition: attachment; filename='.$request->input('type').'.zip');
header('Content-Length: ' . filesize($attachment));
readfile($attachment);
} else {