Any file I uploaded to a SharePoint folder and try to preview it in the browser (either by clicking preview in browser or typing the URL directly into the browser) the browser wants to download the file instead of just displaying it. These are html files. Our Server Administrator does not know what is causing this behavior. HELP!
- Go to Central Administration 2013 > Application Management > Manage Web Application.
- Select your web application from the list and on the ribbon select General Settings.
- Now find Browser File Handling option in the modal pop up window and change Strict to Permissive.
Just like this
and now you should be able to view your HTML files in browser.
Here is the link where similar kind of question is asked and answered How do I prevent Sharepoint from asking to download html files to my local machine?
You will need to use powershell script to add mime type for HTML file.