You need to sign in to do that
Don't have an account?
Medhavi Sharma
How to download pdf using publicURL in lightning component?
Hi,
I have created a lightning component accordion where I want to display a link to download a pdf file publicly(that exists in database). I am querying ContentDistribution to get the URL. Can someone help me on how to proceed at the client side?
db query : select ContentDownloadUrl from ContentDistribution
How do I assign this link in the component?
Thanks in advance for your help
Greetings to you!
Please refer to the below links which might help you further with the above requirement.
https://salesforce.stackexchange.com/questions/148568/how-to-download-file-lightning-component
https://salesforce.stackexchange.com/questions/209135/download-fileimage-doc-pdf-in-lightning-component?rq=1
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Hi khan,
This link helps in downloading files stored in documents.
I want download the pdf using the ContentDownloadUrl, DistributionPublicUrl. I just want to fire this URL when the user clicks a button.
Thanks.
and click of the link redirect download