osTicket
osTicket copied to clipboard
Chat attachments on created ticket
Hi Remigijus! I ca'nt find the way to send offline chat attachments to new created ticket in osTicket. How to take LHC attachments ($chat->attachments ???) and send with $data to osTicket api.
$data = array( ‘name’ => $name, ’email’ => $email, (...) ‘attachments’ => array() );
If you are talking about about attachments related to specific file you can just use
erLhcoreClassModelChatFile::getList(['filter' => ['chat_id' => $chat->id]])
and then file_get_contents($file->file_path_server);
Yes, I'm trying to send files attached to the chat, to osTicket. But I can't find the way to use that code...