tags:

views:

60

answers:

2

H

could you tell me how to create a link to a file on the c drive(local machine)

or a link to download a file from the hard drive

this doesn t seems to work

<a href="C:/Documents and Settings/Giga/My Documents/NetBeansProjects/JavaRssFeed/RssFeed/build/web/WEB-INF/Xml/Gaetano Feed.xml" class="font18">C:/Documents and Settings/Giga/My Documents/NetBeansProjects/JavaRssFeed/RssFeed/build/web/WEB-INF/Xml/Gaetano Feed.xml</a>

The file is created by my application on the user machine, then all the files in the folder are displayed given the user the possibility to view in a browser

whith it doesn t work i mean it doesn t do anything thanks

+3  A: 
<a href="file:///C:/Documents and Settings/Giga/My Documents/NetBeansProjects/JavaRssFeed/RssFeed/build/web/WEB-INF/Xml/Gaetano Feed.xml" class="font18">C:/Documents and Settings/Giga/My Documents/NetBeansProjects/JavaRssFeed/RssFeed/build/web/WEB-INF/Xml/Gaetano Feed.xml</a>
AdmSteck
it doesn t work
GigaPr
Are you trying to show a file on the server, or on the machine that is being used to view the web page?
AdmSteck
+1  A: 

The browser prevents linking to local files via hyperlinks. The only way you can access the file is if you serve it via a web server. Or type the URL on the address bar.

Babiker