Remove .ashx extension from sitecore media file links
Problem:
When clicking on a linked PDF document or any media file sitecore added .ashx extension to the linked file. This caused issues with some browsers and OS versions not knowing what to do the file.
Solution:
Let the uploaded file present its original extension.
Modify the web.config file and look for
<setting name=”Media.RequestExtension” value=”ashx” />
change the setting to
<setting name=”Media.RequestExtension” value=”” />