Hi has anyone managed to send attachments using the API ? I've used ntozier's example code. But trying to attach a txt file, the newly created ticket's thread shows a "File Import Error", "Unable to import attachment - file.txt" in the ticket. And trying to attach an image (which is what I really want to do) shows "Invalid file type (ext) for".This is my image attachement code:$config = array( 'url'=>'http://www.mysite.co.uk/support/api/tickets.json', 'key'=>'MYAPIKEY');$path= 'myimage.png';$type = pathinfo($path, PATHINFO_EXTENSION);$data = file_get_contents($path);$base64 = 'data/'.$type.';base64,' . base64_encode($data);$data = array( 'name' => 'John Doe', // from name aka User/Client Name 'email' => 'john@gmail.com', // from email aka User/Client Email 'phone' => '1234567890', // phone number aka User/Client Phone Number 'subject' => 'Test API message', // test subject, aka Issue Summary 'message' => 'This is a test of the osTicket API', // test ticket body, aka Issue Details. 'ip' => $_SERVER, // Should be IP address of the machine thats trying to open the ticket. 'attachments' => array('myimage.png' => $base64));#curl post$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $config);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));curl_setopt($ch, CURLOPT_USERAGENT, 'osTicket API Client v1.8');curl_setopt($ch, CURLOPT_HEADER, FALSE);curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Expect:', 'X-API-Key: '.$config));curl_setopt($ch, CURLOPT_FOLLOWLOCATION, FALSE);curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);$result=curl_exec($ch);$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);curl_close($ch);if ($code != 201) die('Unable to create ticket: '.$result);$ticket_id = (int) $result;echo $ticket_id;This works as far as creating a new ticket and returning the Id but like I said, the attachment fails.