Can't post images at all anymore?

This is a new issue to my knowledge. It was pointed out in this post that a photo of Kim Jong Un couldn’t be embedded, and they had to post a link you needed to click to see it.

I thought that it might be an issue with the format of the image (it’s a .avif file) or because it was a large photo and it was posted after the preview pane pre-loaded it, which is the same problem we have trying to post an inline video. But I’ve tried all sorts of photos, and made sure to disable the preview pane, and I still get an error.

The specific error is:

An error occurred: Sorry, you can’t include images, videos, or audio in posts. You can link to them within a sentence instead.

I haven’t seen this happen before today. Did something happen with the site?

Strange, I can’t either. I thought it was the picture since I also couldn’t upload that image to imgur, but when I tried posting a random picture from imgur, I got the same error.
Seems like someone turned off the ability to post inline images.

ETA, threads with pictures still have pictures, so that’s good.
ETA2, I also couldn’t post a picture to a thread that already has pictures.

Same here, I used the exact same method to post an image that was previously posted in a different thread and got the message. The preview shows the image, so it’s not a direct technical problem, it appears to be being prevented.

Yep, just tested it, same problem.

Apparently Discourse just made a security fix:

and the fix:

Chatgpt says:

My assessment is that Straight Dope probably already had a restriction on embedded media for some user groups, but an earlier Discourse bug allowed users to get around it. The November fix began enforcing the restriction properly.

So this is not simply a Straight Dope administrator suddenly deciding to prohibit images. It may be an unintended consequence of a Discourse software update exposing an existing permission setting.

The question for Straight Dope administrators is whether they intended that restriction to apply to ordinary registered members.

I would be quite confident that we’ve identified the underlying cause, although we cannot yet establish the forum administrators’ intentions.

Tried to post one from imgur with no luck. Doesn’t bode well for the monthly photo contest.

Ugh… So what we’re saying, then, is that we’ve been taking advantage of an exploit in order to post images, and they’ve “fixed the glitch” (to quote Office Space), so now things are working the way they were always intended to.

Well that stinks. I get it, I guess, but it’s disappointing. I guess it was nice while it lasted!

I think I don’t understand why that feature was not allowed – I don’t think Discourse is hosting anything, right? It’s being hosted elsewhere, and just shown here. No skin off Discourse’s nose.

I just tried with an image from Wikimedia, but no luck. It appeared in the preview window but I received the same error as in the first post of this thread when hitting reply.

Too bad, as that was a useful option.

I hope it’s not permanent. I will be heartbroken.

Here is what the thread over at Discourse on the security patch info says:

  • the composer accepted image, video and audio uploads, so their URLs could be reused in a post
  • media URLs on their own line (external images, uploaded videos and audio) render as oneboxes, which PostAnalyzer#embedded_media_count ignored because it counted from the stripped cooked HTML
  • video uploads render as .video-placeholder-container, not <video>, so they weren’t counted either
  • a link whose URL doesn’t look like media but whose response is (an image served without an extension) became a media onebox after validation

And all of that sounds like what we’ve been doing to get YouTube videos and photos to work in posts. But now…

This change:

  • counts rendered media (excluding rich onebox previews) and pending media oneboxes in embedded_media_count
  • adds Guardian#can_embed_media?, used by the post validator and exposed as can_embed_media on the current user
  • refuses image, video and audio uploads in the composer when the user can’t embed media

And to us:

  • video uploads and media URLs now count towards newuser_max_embedded_media and skip_review_media_groups

What we’ve been using seem to be what Discourse calls “media URLs”, and it is explicitly blocking them. We can link to images and videos off the site, but we can no longer have it embedded in a post anymore, despite the fact that it’s being hosted elsewhere and we aren’t uploading anything.

Damned. And all that because I wanted to upload a picture of Kim Jong Un that seemed ridiculously weird to me.
I’ll never do it again, I promise. They won’t let me anyway.

When you hotlink to some image at, say, ImgBB or some random news site, you’re right that that image remains hosted at that site, whatever it is. Not at Discourse. But …

Discourse creates a thumbnail, or for vids a first frame still preview, and stores that thumbnail within their own cloud storage. Which storage Discourse (and their customers like SDMB) are paying for.

That’s the thing Discourse originally did not want everybody under the sun to be able to do: store thumbnails / previews on Discourse’s cloud servers. But their bug allowed everyone, including you and me, to do it. So we did.

And now they’ve fixed the bug and we’re prohibited again as they’d wanted all along.

It looks like if SDMB wanted to pay for additional storage for thumbnails for our pix & vid cites’ thumbnails, then SDMB management could enable thumbnail caching and hence image inlining for all registered users.

“User groups” are something created by the administrator of the site here, though, right? It sounds to me like an administrator could fix this just by enabling the “Embed Media” option for the regular user group, here. Or promote everyone to a different user group that has that option. And that that might also fix the problem that we’ve had forever with embedding YouTube videos that Discourse has never been able to help us with.

If storing thumbnails is really a problem for Discourse, then they could just… not do that.

I blame Biden.

mmm

Are you sure about this? I couldn’t find confirmation that it’s actually creating and saving thumbnails on Discourse servers. Maybe it is, but that’s not how I’d expect it to work.

If the admins still want to block upload of content but allow oneboxes to show linked content, I believe they can add us to the embedded_media_post_allowed_groups and set the maximum size to 0 KB ( max_image_size_kb and max_attachment_size_kb = 0). That would block all uploads but allow link rendering.

I was gathering that from my limited understanding of @PastTense’s cites in post #5. I may have screwed that up.

Ref those cites, for sure something was being stored in an S3 bucket that Discourse was controlling and paying for. And that was the problem; they didn’t actually want that to happen. And now it doesn’t.

This thread suggests they are.

By default, linked images are downloaded to local storage so that they continue to exist even if the source disappears.

That way if you link to something on Imgur or whatever, and then it gets deleted on the host, you still have the image here.

You know, I could actually test that. I’ve linked to images I uploaded to Shutterfly, and I can easily delete them there and see if that breaks the image in a post.

ETA: Apparently that’s a bad test. If you delete a photo from your album, they actually keep it in their database, so it doesn’t actually go away. I might have to test one of my really old Imgur uploads instead.

Ah, thanks for that link. That led me to this issue, which suggest you can disable that using setting download_remote_images_to_local. I’m willing to sacrifice a permanent copy of images if it gets us the onebox back.

Aha, test confirmed!!!

Look at this post:

https://boards.straightdope.com/t/larson-comic-whats-the-funny/990434/184

In the preview you should see an Imgur error, because I deleted the image (if it loads a preview at least). But click and look at the post. The picture is still there! (It’s the picture of two Vikings from a Far Side comic.) The preview in this post is broken because it’s trying to create another thumbnail from the source, and the source is gone. But go to the actual post, and the picture is still there because it is stored on the Discourse server from when I first posted it. That’s proof that they are in fact being locally stored. You can also click the picture of the Vikings and you’ll get an error because the image isn’t on Imgur anymore.

ETA: I don’t see a preview in this post even though it was showing up in my editing window. Weird! Maybe it’s the same “can’t include images” error at work.