Monday, 30 November 2015

Force Download of PDF in Sitecore

Make sure to have ForceDownload as true and disable the Range Retrival using below setting if needed.

<mediaType name="PDF file" extensions="pdf">  
  <mimeType>application/pdf</mimeType>  
  <forceDownload>true</forceDownload>  
</mediaType>  


<setting name="Media.EnableRangeRetrievalRequest" value="false"/>

No comments:

Post a Comment

Featured post

Getting Started With SOLR

Getting Started with Solr ·           Features o    Hit highlighting o    Auto correction o    Faceted Search o    Multi lan...