Forum Discussion
Melissa Klug
Nov 22, 2017Copper Contributor
Open HTML files in browser - SharePoint Online
I'm trying to open HTML files that are saved in a Document Library created on a Team site (using Office 365 Groups). When we add HTML files to the library they will only download and then open. We wo...
DSh13
Jul 20, 2021Copper Contributor
This Microsoft article explains that you have to change some site settings and use PowerShell to effectively rename a .html file to .aspx. It also says that if you subsequently edit the file it will no longer open directly until you go through the process again. The whole purpose is to stop malicious code from being inserted on the SharePoint site and run via .html pages. https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-permissivesetting#remediation-process-for-htmlhtm-files
DSh13
Oct 27, 2021Copper Contributor
So, in early August I tried some things and got different results.
I created a page that had 3 different types of links.
• The first one links directly to a single .html file and for me opens it in the browser.
• The second one links to a document library view that only shows .html files. From that view, clicking on the file for me opens it in the browser
• The third is library web part that uses the same view that only shows .html files. From that, clicking on the file for me downloads it.
I created a page that had 3 different types of links.
• The first one links directly to a single .html file and for me opens it in the browser.
• The second one links to a document library view that only shows .html files. From that view, clicking on the file for me opens it in the browser
• The third is library web part that uses the same view that only shows .html files. From that, clicking on the file for me downloads it.