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
SunilKumar.ax1648SunilKumar.ax1648 

How to download the document from force.com sites for custom coding?

Hi All,

 

 

I have a visualforce page on which I am accessing the document using the "servlet/servlet.FileDownload?file={!docId}". But the problem is this, this is accessing publicly. I want to authenticate this with my own custom login cretentials. So, is there any logic that open the document file as download link, or without accessing the given URL, we would get the document.

please post a solution asap.