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
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.