From 6bc7d208589057b8a126e1c7f023f823b041f871 Mon Sep 17 00:00:00 2001 From: Abhishek Gupta Date: Mon, 19 Jun 2023 18:22:13 +0530 Subject: [PATCH 1/2] Changes in customer ticket view download tickets zip without extrac to view zip file : #229 --- Controller/Ticket.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Controller/Ticket.php b/Controller/Ticket.php index 62aaa49..0f4f0d4 100644 --- a/Controller/Ticket.php +++ b/Controller/Ticket.php @@ -579,6 +579,7 @@ public function downloadAttachmentZip(Request $request) $response->setStatusCode(200); $response->headers->set('Content-type', 'application/zip'); $response->headers->set('Content-Disposition', 'attachment; filename=' . $threadId . '.zip'); + $response->headers->set('Content-length', filesize($zipname)); $response->sendHeaders(); $response->setContent(readfile($zipname)); From fc8e4ebb876b8c1ce572d288e6bd46bd5c303672 Mon Sep 17 00:00:00 2001 From: Abhishek Gupta Date: Mon, 3 Jul 2023 19:35:11 +0530 Subject: [PATCH 2/2] Update in download attachments from the customer dahsboard :#665 --- Controller/Ticket.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Controller/Ticket.php b/Controller/Ticket.php index 0f4f0d4..1b80d05 100644 --- a/Controller/Ticket.php +++ b/Controller/Ticket.php @@ -620,8 +620,7 @@ public function downloadAttachment(Request $request) $response->setStatusCode(200); $response->sendHeaders(); - $response->setContent(readfile($path)); - + readfile($path); return $response; }