Skip to content

Instantly share code, notes, and snippets.

@themattconnolly
Last active September 21, 2018 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themattconnolly/8625afe6370154a6e40e5616707aeebb to your computer and use it in GitHub Desktop.
Save themattconnolly/8625afe6370154a6e40e5616707aeebb to your computer and use it in GitHub Desktop.
Sitecore PDF Open In Same Browser Patch - MediaTypes
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<settings>
<setting name="Media.EnableRangeRetrievalRequest">
<patch:attribute name="value">false</patch:attribute>
</setting>
<setting name="Media.RequestExtension">
<patch:attribute name="value"></patch:attribute>
</setting>
</settings>
<mediaLibrary>
<mediaTypes>
<mediaType name="PDF file" extensions="pdf">
<forceDownload>false</forceDownload>
</mediaType>
</mediaTypes>
</mediaLibrary>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment