Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

File Attachments Error

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

Tagged:

Comments

  • I'm not real sure that we provide support for un-released versions here.  I would think that you would want to post on Github about that.

    That being said Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.

    please provide:
    the PHP error from your error logs.
    version of PHP
    flavor and version of OS and Webserver
Sign In or Register to comment.