How to change file type association in Sharepoint 2010

Get an icon for the file type association with the extenstion .gif or .jpg or png. The size of the icon needs to be 16 x 16 px.

Rename the file as "ICxxx.gif" and copy the file to the following path:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES

After the icon has been copied to the location mentioned above open up the file "DOCICON.XML" in the following location in an editor:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML

After the file has been opened in an editor, add the following line:

<Mapping Key="pdf" Value="icpdf.gif"/>

If there are more than one servers in the farm then the process needs to be done for all the servers and after all the changes have been done the IIS needs to be reset for the changes to take effect.

Comments

Popular posts from this blog

jQuery Basics

What is the difference between a Page Layout and Master Page in SharePoint?

Accessing data from SharePoint 2010 to an ASP.NET application