In-reply-to » @prologic - I do not want to nag about it - but did you find some way to post image through curl? (Or could you share the almost-working solution that you tried?), if you have not had time - then that's fine too. I want to start looking into it again :)

@stigatle@yarn.stigatle.no Yeah sorry about that! Here’s how to do it!

$ curl -F media_file=@gitea.png -H "Token: $YARND_TOKEN" https://twtxt.net/api/v1/upload
{"Type":"taskURI","Path":"https://twtxt.net/task/FiBmMQbNF7bicLSZsWybmN"}
$ curl https://twtxt.net/task/FiBmMQbNF7bicLSZsWybmN | jq '.'
{
  "state": "complete",
  "error": "",
  "data": {
    "mediaURI": "https://twtxt.net/media/rhkm36YACemg7TBmG7d2Q6.png"
  }
}

⤋ Read More