Output attachment contents

This commit is contained in:
Mike Koch 2017-04-11 12:39:09 -04:00
parent d461059cf0
commit c606be50ef

View File

@ -20,7 +20,9 @@ class StaffTicketAttachmentsController {
/* @var $attachmentRetriever AttachmentRetriever */
$attachmentRetriever = $applicationContext->get[AttachmentRetriever::class];
$attachmentRetriever->getAttachmentContentsForTicket($ticketId, $attachmentId, $userContext, $hesk_settings);
$contents = $attachmentRetriever->getAttachmentContentsForTicket($ticketId, $attachmentId, $userContext, $hesk_settings);
output(array('contents' => base64_encode($contents)));
}
private function verifyAttachmentsAreEnabled($heskSettings) {