Problem:
Today one of my team member is getting a issue with the HTML files that is present in a SharePoint document library. His requirement was to click the page (page.html) link and open the same HTML file in browser but when he click to html page link a prompt comes asking for download the file.

Resolution
It is a new security setting in SharePoint 2010. This is the procedure how to change the default behavior:
Conclusion
You can specify whether additional security headers are added to documents that are served to Web browsers. These security headers specify that a browser shows a download prompt for certain types of files (for example, .html), and to use the server's specified Multipurpose Internet Mail Extensions (MIME) type for other types of files.
The Permissive setting specifies that no headers are added. The Strict setting adds headers that force the browser to download certain types of files. The forced download improves security for the server by disallowing the automatic execution of Web content. By default, the setting is Strict.
Today one of my team member is getting a issue with the HTML files that is present in a SharePoint document library. His requirement was to click the page (page.html) link and open the same HTML file in browser but when he click to html page link a prompt comes asking for download the file.
Resolution
It is a new security setting in SharePoint 2010. This is the procedure how to change the default behavior:
- Go to Central Administration
- Select Manage web applications
- Select the web application you want to modify
- In the Ribbon, click the General Settings button and select General Settings from the drop down menu
- In the section Browser file handling, select Permissive instead of Strict.
Conclusion
You can specify whether additional security headers are added to documents that are served to Web browsers. These security headers specify that a browser shows a download prompt for certain types of files (for example, .html), and to use the server's specified Multipurpose Internet Mail Extensions (MIME) type for other types of files.
The Permissive setting specifies that no headers are added. The Strict setting adds headers that force the browser to download certain types of files. The forced download improves security for the server by disallowing the automatic execution of Web content. By default, the setting is Strict.
Comments
Post a Comment