Skip to content

Commit

Permalink
Changes in customer ticket view download tickets zip without extrac t…
Browse files Browse the repository at this point in the history
…o view zip file : #229
  • Loading branch information
Abhi12-gupta committed Jun 19, 2023
1 parent 65f059e commit 6bc7d20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Controller/Ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 6bc7d20

Please sign in to comment.