Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirect to a file:// on client side : is it possible ?

 
Julien Roubieu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to do the following for a few hours, and I don't event know if it is possible... What do you think ? :

Knowing that there is a file at a specific location on the hard drive of the client machine which is accessing the webapp (say C:\dir\image.jpg), is it possible to redirect to a file URL (file:///C:/dir/image.jpg) so that the client will see the file locally ?

When I write a "file://" URL in any browser it will actually find the file, but if I put this same URL in a link href in a web page, the browser will just ignore my click...

Could it be a security issue ? Or am I missing something ?
Thanks for your help !

Julien
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Browsers specifically disallow this this behaviour for security reasons.
 
Julien Roubieu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is understandable.

Thanks for your answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic