Try our conversational search powered by Generative AI!

Download pdf documents

Vote:
 

Hi

I created a new media file for pdf documents,and I want to implement download link for the pdf file. Could anyone tell me how to get the pdf file by id from the blobs directory?

#133377
Sep 03, 2015 9:39
Vote:
 
Url.ContentUrl(ServiceLocator.Current.GetInstance<UrlResolver>().GetUrl(contentReferenceToFile));

Written from memory, may not compiel at first attempt, as I do not have compiler installed in my head yet :)

#133386
Sep 03, 2015 11:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.