Hello. I am using Osticket-develop branch and I want to create tickets via API. I send
{'email': 'api@osticket.com', 'source': 'API', 'attachments': [{'1.txt': 'data:text/plain;base64,base64Encoded'}], 'alert': True, 'subject': 'Testing API', 'name': 'Angry User', 'ip': '127.0.0.1', 'phone': '3185558634X123', 'auto respond': True, 'message': 'MESSAGE HERE'}
to /api/http.php/tickets.json. But I got error
b'<br />\n<b>Catchable fatal error</b>: Object of class AttachmentFile could not be converted to string in <b>\\include\\class.orm.php</b> on line <b>1638</b><br />\n'
and 200 http code.
Ticket is created, but here is comment : Unable to save file rather than attached files. What am i doing wrong? Thanks