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

How to Download the uploaded document using VF page

I have uploaded the document using examples given in the component ref. now I want to download that document using my custom VF page.Please guide me ..



Thanks In Advance,


Sandip Thakare


Assuming you know the id of the document, its url will be something like '/servlet/servlet.FileDownload?file=<doc id>'


If you create an outputlink to this url (replacing the id with your doc id) then clicking on the link will bring it up.


Hope this helps !