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
ShariqueUl_BariShariqueUl_Bari 

How to give HYPERLINK to a local file in Salesforce

Hi,

I want to access local files present in ShareDrive from Salesforce using a HYPERLINK. I'm not sure how to acheive this but I did find few articles on Google that say this might not be possible because the browsers disable this for some security purpose.

https://stackoverflow.com/questions/811570/how-do-i-make-a-file-hyperlink-that-works-in-both-ie-and-firefox
https://salesforce.stackexchange.com/questions/113720/open-a-local-file-providing-a-hyperlink-in-visualforce-page
https://developer.salesforce.com/forums/?id=9060G000000UWOLQA4

I need a confirmation around this, or better yet, a solution on how I can acheive this.

If I give file:///J: in the HYPERLINK, it doesn't work and if I remove the 'file' part, the link becomes https:// which won't work.

Thanks,

Sharique