Accessing files on local drive from localhost

I use PHP or HTM files from my local web server (localhost) to view images from the local drive(s). This works fine in IE6.

<img border="0" src="file:///C:/Program%20Files/WallMaster/WallMaster%20Wallpaper.bmp" width="860" height="688">

IE7 does not "find" the file. "Properties" for the undisplayed file gives the file name, but nothing else - no url, size etc.

Is there some setting I need to change

Or am I condemned to have no access to my data



Answer this question

Accessing files on local drive from localhost

  • pwinant

    Did you find an answer to this Juan I have been using local file system references to images for demos etc, and although I now see the error of my ways, and am switching over to http and/or UNC references, would really like to still have access via the old method due to the number of images that this affects.

    Is there a registry entry that I can change for example

    I'll be extremely grateful if anyone can shed any light on this!


  • qayoom

    No - no replies! I moved all my photos into the localhost-webserver area (which needed a reorganisation of disk partitions!!!). Grrr.
  • fj64

    I have experienced the same problem. The only work around I have found was adding the web site to the trusted sites list. It seems that when a site is in the trusted sites list then local image references such as:

    <a id="Test Link" href="default.htm"><img src=file:///C:\0000.ico

    work as expected.

    However when the site is in the local intranet group the image will not be displayed.

    Leslie


  • Accessing files on local drive from localhost