DEV Community

Dave Parr
Dave Parr

Posted on

Is there an API endpoint to upload images to DEV.TO?

I'm continuing to work on dev.to.ol. Some of the future work is sort of clear to me, but I'm still missing a big piece of the puzzle.

How can I take the charts (images) generated by the rendering of the .Rmd, and submit them to dev.to?

I'm not spotting a POST or PUT method in the api docs. Have I overlooked something, or is it something that might be a future feature?

Top comments (5)

Collapse
 
emma profile image
Emma Goto πŸ™

I actually want to know the answer to this too! (I came across this post when I googled it) any thoughts @ben?

Collapse
 
daveparr profile image
Dave Parr

Thanks for the interest. In the end I was pretty sure it wasn't exposed outside the Dev.to editor interface, so I went with GitHub as the 'Image Host', as convoluted as that is: github.com/DaveParr/dev.to.ol/tree...

Collapse
 
emma profile image
Emma Goto πŸ™

Interesting, that's actually really smart!

Thread Thread
 
ben profile image
Ben Halpern

Yeah the way we do images has never lent itself to an api making much sense, but we’re re-organizing this and that may change in near future.

Thread Thread
 
bcouetil profile image
Benoit COUETIL πŸ’«

Has it changed in the meantime ? πŸ˜‡