Output attachment contents

remotes/upstream/api-rewrite
Mike Koch 7年前
コミット c606be50ef

@ -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) {

読み込み中…
キャンセル
保存