Reputation: 5386
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
Upvotes: 2
Views: 6524
Reputation: 18818
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.
Upvotes: 2
Reputation: 1761
<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>
Upvotes: 3