mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-27 08:24:06 +00:00
download billing documents
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user