Remove .ashx extension from sitecore media file links

/ January 30th, 2013/ Posted in IIS, Random / 3 Comments »

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=”” />


3Comments

  1. pushpendra singh
    2017/11/28 at 05:57:26

    please check sitecore.config under app_config folder.

  2. Srinivas Mummareddy
    2017/04/14 at 01:38:00

    In web.config i didn’t find any such thing

    • Jamie
      2017/05/03 at 17:10:04

      You can probably just add it.. I don’t remember which root setting it is under though..

Leave a Reply

Name required

Please Submit Answer * Time limit is exhausted. Please reload CAPTCHA.