Add images to API posts

How to add pictures or file to an upcoming topic?

have you solved this problem?

You should upload the file and get the url to the file, then post it.

r = requests.put()
p = "http:"+r.json()['url']

Hey, I tried using a third-party cloud bed to store images later, and then I used img tags to implement content in themes or posts because it saved space on the server.