adding file attachment to Trello card with the API

I'm developing webapp that saves pictures from a canvas.

Does someone have a example to attach a file to a card with the api.

Attachting a url works but the documentation for a file is not clear to me.

this is the link to the API https://developers.trello.com/advanced-reference/card#post-1-cards-card-id-or-shortlink-attachments

thanks!

 

2 answers

1 vote
Bentley Cook Atlassian Team May 09, 2017

I've put together a set of examples that use a number of techniques to attach images to cards. You can view the project here: https://glitch.com/~trello-attachments-api

If there is a use-case not covered or you still have questions, let me know and I'll see if I can update the project.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

522 views 8 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you