Broken pasted from email image in post?

One of my users pasted an email message into a Discourse post:

The image doesn’t work:

However, it works in the message preview:

Here’s the generated markdown code :


Here’s the produced HTML code:

<p>C’est de l’ancien (donc de l’historique), alors il faut se remettre dans le contexte, une montagne pas très connue, ça bouge pas trop… <span alt="" class="broken-image" title="Cette image ne fonctionne pas"><svg class="fa d-icon d-icon-unlink svg-icon" aria-hidden="true"><use xlink:href="#unlink"></use></svg></span></p>

The image shows up if I rebuild the HTML, but it will be broken again after a while.

download remote images to local setting is enabled.

Any idea why the image breaks?


This is usually because email providers have very aggressive image hotlink prevention, they do not want people using email image URLs anywhere outside their webmail domain.


Thanks for the explanation.

Any way to circumvent that?

Since my forum is supposed to download external pictures, I’d expect that it actually download the picture to display it, but I don’t know how it works for websites that prevent hotlinking. :man_shrugging:t6:

Oh, it happens on my forum too. I thought it was due to my late database manipulation! :smile:
Actually, I believe it’s the first time I see “broken” images. Any improvement on this behavior would be welcomed.

Webmail links will work in the preview as the local browser already has a copy.

Copy + paste won’t work unless you can find a way to paste the image itself, rather than a link to the image. Links will never work because your discourse server isn’t authenticated to the Webmail, so can’t access the asset.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.