Reputation: 17794
i would like to display images on my website that are stored on a visitors local filesystem.
Assuming I have the location of the image on the visitors drive (e.g. c:\Documents And Settings\Ropstah\image.png), is it then possible for me to display this image in my internet website (e.g. www.website.com)?
The images won't seem to load when i use the following syntax (Internet Explorer 7, Firefox 3 etc..):
<img src="file://c:\Documents and Settings\Ropstah\image.png" />
The images DO display if the .html file (which i use on website.com/index.html) is located on my local pc...
Upvotes: 1
Views: 9909
Reputation: 1578
This sounds like security settings on the web browser, which are probably set to a level that prevents local filesystem access for an internet site.
Security settings can be edited by users, in a way specific to each browser. for example for IE it's Tools -> Internet Options -> Security
Upvotes: 4
Reputation: 1038710
Using pure HTML you cannot access files stored on users' computers. You could instead use Flash, Java Applet, ActiveX, Silverlight, ...
Upvotes: 0
Reputation: 21555
You can't.
Stupidly, these browsers have decided to close "security holes" by not allowing public web pages to disable local content.
Upvotes: 0