Browse Source

Output attachment contents

tags/3.1.0
Mike Koch 2 years ago
parent
commit
c606be50ef
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      api/Controllers/Attachments/StaffTicketAttachmentsController.php

+ 3
- 1
api/Controllers/Attachments/StaffTicketAttachmentsController.php 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) {

Loading…
Cancel
Save