Local image URL syntax??Tuesday, April 17, 2007 by Dave Winer. I have a folder of images on my local disk. If I drag one onto the Firefox icon in my toolbar, it displays. The URL in the address bar is:
However, if I use that URL as the src attribute on an img element, I get a broken image.
Question: Is there a way to get the browser to display an image coming from the local file system, and if so, what's the syntax for the URL? Sam Yates says it might be a Firefox security feature. Via email, Wendy McCully writes: "As long as the HTML file that references the local images is in the same directory as the images themselves, you don't need to indicate any path at all." I tried it -- and it works, without changing the browser's security settings. |