SharePoint – Render HTML files in the browser

SharePoint 2013 web applications have browser handling level set to strict. This setting prevents browser from rendering HTML files. HTML files are one example file type that you may want to have open directly in the browser rather downloading and then opening. Use the below script to add HTML and HTM Mime types to Web Application.

$webApplication = Get-SPWebApplication "http:/contoso"
//HTML FilesĀ 
//HTM Files

Leave a Reply

Your email address will not be published. Required fields are marked *