Cannot open file:// from local intranet directly in Edge

Matt Pollock 256 Reputation points
2024-03-07T15:45:06.83+00:00

Hello,

I've been trying to solve an issue raised by several of our users, whereby they try and open a link via Edge, to an .xls file that is stored on our LAN in a file share, but nothing happens.

Opening Dev tools in Edge shows the following error when the link is clicked:

User's image

If however, one of the following methods is employed, the file is accessible:

  • right click intranet file link, select "open in new tab" - file downloads in Edge
  • right click intranet file link, copy paste into Edge address bar - file downloads in Edge
  • right click intranet file link, copy paste into Windows Explorer - file opens up in Excel

If I click the link via the Intranet on a server (running IE), I get a prompt asking me if I want to download the file - which is what I am expecting in Edge.

Can anyone help resolve this issue please as it is driving me mad!

Thanks in advance

Microsoft Edge | Microsoft Edge development
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Jinxin Wang (Shanghai Wicresoft Co Ltd) 2,195 Reputation points Microsoft External Staff
    2024-03-08T07:07:59.6466667+00:00

    Hi @Matt Pollock,

    For security reasons, Microsoft Edge doesn't allow access to file:// URLs from pages served by HTTP or HTTPS. If you want this functionality, you can use the IntranetFileLinksEnabled group policy. You can refer to this link: https://learn.microsoft.com/en-us/deployedge/edge-ie-mode-faq.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Jinxin Wang


  2. Matt Pollock 256 Reputation points
    2024-03-20T09:45:57.91+00:00

    Hi @Anonymous

    Thanks - so to confirm, I have added the following entries into the Local intranet zone:

    *.domain.localnet (the file path called is a variant of file://domain.localnet/some folder/somefile.xls)
    http://intranet (the address of the home page of the intranet)

    The http://intranet site is already configured to use IE mode via a site list configuration

    I am still unable to access the file, I must be still missing something.....


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.