Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm viewing in Internet Explorer 8.

I have a link to a local file (a href = "file:///path). I know the path is correct because if I copy it and paste it in a new window, it opens fine. But when I click the link, nothing at all happens. (I can also save a copy by right clicking the link and "Save Target As")

These types of links work fine if I just open the page from My Computer in Internet Explorer, but do not work when I try to hit them over localhost. I have localhost set as Local Intranet in security settings.

Do these links just not work in IE anymore, or am I missing something?

share|improve this question
add comment

migrated from stackoverflow.com Apr 5 '11 at 14:17

This question came from our site for professional and enthusiast programmers.

2 Answers

It is a security setting. Normally web pages cannot link to local files in any way at all. This is because they could use hidden form parts such as upload to upload any file from your hard drive. You may be able to lower Internet Security in Options.

Edit: What happens if you drag the file from Explorer to the address bar?

share|improve this answer
    
The what now? Links are hardly the same thing as file inputs... –  SamB May 13 '11 at 23:59
    
@SamB Yep, I see that now. –  tobylane May 15 '11 at 15:14
add comment

No, it's the new windows updates on Windows 7. I have old HTML files on my Windows7 computer that still work this way.

But if I copy the exact code into a new text doc on Windows 7 and then rename to .html they do not work.

My advise is to create your work on another computer with, say, XP installed. Then move to Windows 7 and then they will work. Or keep copying an old version of an HTML doc that works and edit / rename after.

share|improve this answer
2  
But, what's the problem? –  SamB May 13 '11 at 23:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.