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