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