As I was researching for a way to do this I ran across several blogs that told me how to add an image for a .csv icon to show up under SharePoint 2010.
Here’s one that I really liked:
(Dave Coleman is awesome BTW)
Which the process here can pretty much be copied with any file extension type you want to connect with any other icon. Dave does a great job explaining this.
So I was originally looking for a way to map the .csv icon here to map to the icon that normal shows up when you save a .csv under excel.
I found out (to my surprise) that if you look under the images folder at:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES
There actually is an image of a .csv (csv16.gif) there, it’s just not associated with anything.
So in order to hook this bad boy up to SharePoint we need to go into:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML
<Mapping Key="csv" Value="csv16.gif" OpenControl=""/>
under the heading <ByExtension> and directly under the entry:
<Mapping Key="css" Value="iccss.gif" OpenControl=""/>
Then do an IIS Reset and upload a .csv file to test it out and see if it works. I have confirmed that this file does exist for both Foundations and SharePoint Server 2010.
Enjoy and happy SharePointing