domz
domz

@manton Is the only way to upload an image to do it using the media endpoint? Can I include an image (not just a url) as part of a h=entry POST? If I successfully upload an image with the end point should it show in my “uploads” section of the website?

I’m playing around with Shortcuts and trying to post to the API but having some difficulties. Has anyone got this working before?

|
Embed
Progress spinner
manton
manton

@domz People have it working from Shortcuts, although I don’t have any of the links handy at the moment. You can include the image data with the post, but I recommend using the media endpoint because it’s usually simpler. Images will appear under Uploads regardless of how they’re uploaded.

|
Embed
Progress spinner
Gabz
Gabz

@domz I use a combination of Drafts and workflow for this. @craigmcclellan posted these a while ago. I’m still using them and working like a charm.

|
Embed
Progress spinner
craigmcclellan
craigmcclellan

@Gabz @domz I haven’t looked at these much with the iOS 13 update to Shortcuts. Let me know if something is broken and I’ll try to take a look.

|
Embed
Progress spinner
Gabz
Gabz

@craigmcclellan @domz just tested it, works well.

|
Embed
Progress spinner
domz
domz

@Gabz this looks perfect! I will take a look!

|
Embed
Progress spinner
domz
domz

@manton for some reason I have to replace https:// with http:// with the photo url returned by the end point to get the POST to /micropub to work without error. Maybe it’s a bug?

|
Embed
Progress spinner
manton
manton

@domz Interesting. I could see that happening if the HTTPS version of your site wasn't working, but it all looks fine to me. If you still see any problems, drop me an email (help@micro.blog) and I can take a closer look.

|
Embed
Progress spinner
smokey
smokey

@manton @domz FYI, we’ve been accumulating people’s Shortcuts and related tools here on the wiki.

|
Embed
Progress spinner