I am migrating from WSS 3.0 to SharePoint Server 2010. In WSS in the Web Part Gallery, I could open .xml files for a custom Web Part in the browser, as long as they had the < ?xml... > tag. With 2010, the Name field in the Web Part Gallery links to the .webpart file (which is still xml). But when I click the Name, it prompts me to download it. How do I display the .webpart file in the browser instead?
It turns out the answer is, SharePoint 2010 forces certain file types to be downloaded, even if you associate the file extension (.webpart in this example) with Internet Explorer. I found the answer here:
The author gives detailed instructions for excluding a specific extension, so it is displayed in the browser instead of being downloaded. However, if you are working in a Development environment, and want to just turn off the security setting, follow these steps: