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...
Nov 22, 2017
Have you tried to show the file using a content editor webpart (classic sites)
- Melissa KlugNov 22, 2017Copper Contributor
We have and that works but one of our users has a library with over 30 html files that he would like to be able to click on in the library and then just open in the browser instead of having to set up a page for each one.
- MothraMoonJun 24, 2019Copper Contributor
Melissa Klug I had about 650 html and gif files in an old sharepoint folder (I think it was 2013 version) and it worked perfectly. I linked a contents page to a landing page which anyone with a credentials could access. Our IT people have discontinued that site and I am left struggling with this "new" Sharepoint. I uploaded all of my files into a document library like I did the old one, but it won't access the images (unless I put the full path in which is absurd so instead of imgsrc="myimage.gif it now has to be imgsrc="https://MYSCHOOOL.sharepoint.com/sites/Testing123/Shared%20Documents/myimage.gif). I also cannot navigate from page to page by clicking "next" which would load the page (like href="nextpage.html") If I put long file name in front of that, nothing happens. It still does not work.
I have also tried changing the file extensions to aspx and that does not work either. I need to keep using these files the way they are. I cannot create a new page in share point for all of them. They are all interconnected via a table of contents and it is too cumbersome to redirect all those links (even if it did work) and it is too cumbersome to have to rebuild all the pages.
What in the world changed? Why can't this work like it used to????
Supposedly there is a way to change a setting from Strict to Permissive but nobody ever tells you where to find that setting. I have been banging my head against a wall for six days now. There just has to be a way forward. I just can't believe microsoft would inflict so much pain on everyone. If I do not fix this, my life is over.
- Kim RushbrookeJun 28, 2019Copper Contributor
Hello, I was wondering if you found a solution to the problem of not being able to run a web page using (index) files in the browser?
Thank you
- DeletedNov 23, 2017
I've run into this before and one fix that we came up with -- rename the file extensions from .htm or .html to .aspx. The files will then open in the browser as you expect them to.
- Murray50May 14, 2021Copper Contributor
Changing the ".html" to ".aspx" gave me the following:
Is there a way to NOT offer the Download option? This is a link to a video within training, I don't want them to be able to download the video.