# Downloading remote images doesn't work with protocol-less srcs

**URL:** https://meta.discourse.org/t/downloading-remote-images-doesnt-work-with-protocol-less-srcs/55601
**Category:** Bug
**Created:** [January 11, 2017, 5:25pm UTC](https://meta.discourse.org/t/downloading-remote-images-doesnt-work-with-protocol-less-srcs/55601 "2017-01-11T17:25:24Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [January 12, 2017, 5:39pm UTC](https://meta.discourse.org/t/downloading-remote-images-doesnt-work-with-protocol-less-srcs/55601/4 "2017-01-12T17:39:21Z")

</div>

> [@Falco](#):
>
> @LeoMcA imgur won’t work to prove that here on meta, try with another hosting service.

Aaaah, cheers! The first post now shows the bug, after moving to embedding from the Mozilla Wiki (it was the last place I thought you were going to have blacklisted… and I was right!)

> [@codinghorror](#):
>
> Seems to work fine?

Just to clarify, this is about the behaviour triggered by enabling the `download remote images to local` site setting.

The issue isn’t whether the image is displayed or not, but where it’s hosted. Both images were embedded from the Mozilla Wiki, but only the first has been downloaded locally to your cdn. (The second has been downloaded, but the regexp used to edit the post failed because it was looking for a url with `http:` at the start)

> [@LeoMcA](#):
>
> The image above, embedded with `![Long](//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/9/a/9a3bc7ce270b38e31e0c1425043b3e51539e3b3a.jpg)` will be downloaded locally, and the image src will be replaced with the new url.

This has also exposed another bug, the url in the code block also got replaced. It initially read:

> [@LeoMcA](#):
>
> The image above, embedded with `![Long](https://wiki.mozilla.org/images/2/2e/Longcat1.jpg)` will be downloaded locally, and the image src will be replaced with the new url.

Do we also want to fix this?

---

_[View the full topic](https://meta.discourse.org/t/downloading-remote-images-doesnt-work-with-protocol-less-srcs/55601)._
