London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Download pdf documents

Vote:
0

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:
0
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.