function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Access Local Folder using Hyperlink


I had a requirement to access a local file to salesforce through a hyperlink field which I have to open in browsers other that chrome.

Im seeking for a help as this requirement became critical to me.

Thankyou in advance for any kind of response.

Sindhu Challabotla
Deepali KulshresthaDeepali Kulshrestha

You can use the below code to access the local file:

<apex:page >
        <a href="file:///D:\Abc\....\...">Local file 1</a>

But due to security reasons, it is not disabled by most of the browsers. If you try to open a local file, you will get an error in 

JavaScript console.

    Not allowed to load local resource:<file path>

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha

Thankyou for the response.
I am not abel to open the local file, no action is happening with the local file.
In between, I would like to know, whether there is any way to access local files into Salesforce through Microsoft Edge by purchasing or installing any packages. 
Help me solving this.