Author Topic: Accessing local files using anchor <a> tag.Is it Possible?  (Read 444 times)

0 Members and 1 Guest are viewing this topic.

Offline Anks

  • Serf
  • *
  • Posts: 26
  • Cookies: -5
    • View Profile
Accessing local files using anchor <a> tag.Is it Possible?
« on: September 19, 2014, 02:27:26 pm »
Hello there,

As a part of a PHP-Mysql project, i need to know whether is it possible to hack the browser in some way so that it accesses and opens the local files using the anchor <a> tag.By default,the browser opens the local file ( image in my case )if we pass the direct address using the file:///.... syntax in the browser address bar like this.

"file:///d:/Mail%20data/logo.png"

But if we pass the address in the href attribute of the <a> tag as shown below,it does not work.On surfing google,i came to know that it is a security issue so the browser does not allow access in way shown below.

"<a href="file:///d:/Mail%20data/kp-carving-logo.png">click here</a>"

So is there any special way to accomplish this?
Thanks.

AS578