+ Start a Discussion
SINDHUCHALLABOTLASINDHUCHALLABOTLA 

Access Local Folder using Hyperlink

Hi,

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.

Regards,
Sindhu Challabotla
Deepali KulshresthaDeepali Kulshrestha
Hi SINDHU,

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

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


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
www.kdeepali.com
SINDHUCHALLABOTLASINDHUCHALLABOTLA
Deepali,

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.

Regards,
Sindhu