View Full Version : Make Firefox see an image w/local address?

02-28-2005, 06:41 AM
How come I can't get an image to load if I do something like this is Firefox:

<img src='C:\Documents and Settings\Name\Desktop\Media Moguls site\aplus2.jpg'>

How do I have to code something to make Firefox recognize an image with a local address?

I don;t have any problems in IE....


Edit: Is it because of all the spaces in the file path and name?

02-28-2005, 07:00 AM
yea the spaces in the file names is a possibility..

If I'm not mistaken you shouldn't be using backslashes for the path, instead use forward slashes like everything else.. ("/" instead of "\")

Not sure though, HTH

02-28-2005, 07:15 AM
You could always try "%20" instead of each space.

It's usually easier for me, when I need to test locally, to open the file through Firefox and copy/paste the location just to make sure the filename is the correct path.

02-28-2005, 07:17 AM
this should work

<img src="file:///C|/Documents%20and%20Settings/Name/Desktop/Media%20Moguls%20site/aplus2.jpg">

02-28-2005, 08:21 AM
I'll give it a shot guys and see if your ideas work...Thanks! :thumbsup:

03-05-2005, 02:26 PM
Hello, I get this bug to, and this is how to resolve it:

In Firefox, type in the location bar:


Type in the text field security.checkloaduri and double click to set the value to false.

Restart Firefox and load your page. If you included your pictures with file:///C:/folder/pic.jpg, it will work :)