搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

images display gibberish

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

Hi support -

I'm having issue with the way my Wordpress site is displaying images in Firefox.

http://dev.thecosmicpath.com/test/

Clicking on the image displays a page full of gibberish. I did some research and I saw your article about properly configuring MIME types but I can't seem to get that to fix. I do have access to the htaccess file and added: AddType text/css .css line in, but that didn't seem to fix. Hoping you can help me out. Thank you!

Hi support - I'm having issue with the way my Wordpress site is displaying images in Firefox. http://dev.thecosmicpath.com/test/ Clicking on the image displays a page full of gibberish. I did some research and I saw your article about properly configuring MIME types but I can't seem to get that to fix. I do have access to the htaccess file and added: AddType text/css .css line in, but that didn't seem to fix. Hoping you can help me out. Thank you!

所有回覆 (2)

more options

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.

more options

That image is send as text/plain as you can see in Tools > Page Info > General. So it is clearly a problem with the server configuration.

It works this way:

data:text/html,<img src='http://dev.thecosmicpath.com/wp-content/uploads/Bs1r788CAAEi-xo1.jpg'>

Note that the thumbnail fails as well:

You would need AddType image/jpg .jpg