Jump to content

Click here to lend your support to: Traq and make a donation at pledgie.com !

Uploading attachments via the API

  • Please log in to reply
1 reply to this topic

#1 harinder



  • Members
  • Pip
  • 4 posts

Posted 21 June 2016 - 11:27 PM

Hi Jack


Does the following look okay to upload images to existing items? I've looked at Firebug as I uploaded an attachment via the web interface and as far as I can tell, the parameters are fine. But I'm not clear on whether the API accepts base64 encoded attachments. Appreciate your help.


curl http://my.site/traq/...ckets/47/update \

-d access_token=...

-d attachment=%base64 encoded string%



#2 Jack


    Project Founder

  • Administrators
  • 673 posts
  • LocationAustralia

Posted 22 June 2016 - 07:15 AM

Unfortunately the API doesn't accept base64 encoded attachments.


I usually use the Postman Chrome extension to play around with API's, however with curl you could try to pass data to the API with "-F" instead, see this StackOverflow answer.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users