Image download and display issue


(Adnan) #1

I noticed an issue with pasting image URL’s. They show up properly at first, but then system account downloads the image and replaces the HTML from

http://www.funinstore.com/wp-content/uploads/2012/09/FaceSwap-Poolparty.jpg

to this:

<img src='http://www.funinstore.com/wp-content/uploads/2012/09/FaceSwap-Poolparty.jpg'>

the image source is encapsulated around single quotes and image doesn’t show up for other users, except for yourself.

Fix:

<img src="http://www.funinstore.com/wp-content/uploads/2012/09/FaceSwap-Poolparty.jpg">

Changing the HTML to double quotes, fixes this issue. This does not occur when you upload an image, only happens when you paste an image URL.

Anyone else having this issue?


(Jeff Atwood) #2

This makes no sense, both " and ’ are allowed delimiters in HTML.

Can you provide a link or screenshot of exactly what you are talking about?


(Adnan) #3

Sure. I will replicate the issue and update this topic.


(Jeff Atwood) #4

Here is the image pasted in as

http://www.funinstore.com/wp-content/uploads/2012/09/ FaceSwap-Poolparty.jpg

Let’s see what happens…


(Adnan) #5

k, replicated the issue.

Admin view after system has downloaded and updated the post.


User/Moderator view after system has downloaded and updated the post.

User is unable to view the posts. Since the images have been downloaded and post has been updated by “system” account. HTML in editor looks like this.

Single Quote - this doesn’t work for other users, but I can view it as admin.

<img src='/uploads/default/384/d9c515aab78f1970.jpg'>

I have to manually fix the quotations each time for users to see downloaded images.

Double Quote - all users are able to view this format.

<img src="/uploads/default/384/d9c515aab78f1970.jpg">

I know, it’s slightly confusing. Can I provide any other information?


(Adnan) #6

Should I switch off downloading remote images instead?


(Jeff Atwood) #7

Oddly enough my remote linked image has still not downloaded. I confirmed that download remote images is switched on, but I had to switch it on here, it was off for historical reasons. (It is on by default in all new Discourse installs).


(Adnan) #8

I switched off download remote image feature. That solved the issue.


(Jeff Atwood) #9