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 Klug
Nov 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
- MothraMoonJun 28, 2019Copper Contributor
Kim Rushbrooke wrote: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
No. It is positively the most frustrating, MADDENING experience of my entire life. Usually I can figure this stuff out eventually. However, I am beginning to think that THIS IS MY WATERLOO!!!!!!I have noticed the pages absolutely do not open in IE. However in Chrome and Firefox they did minus the graphic images (broken links). It's a series of pages connected by having the user click "Next" to take them to the next page of a tutorial. It works fine everywhere on the planet....including the old SharePoint site where it was stored for 7 years. That came to an abrupt end (no one giving me any advance warning whatsoever). So now I am undergoing a CRASH PANIC COURSE in how to fix this.
Where I am at now is that my I have to put the Long Path in so instead of 001printref.gif I have to do something like:
For the image
For the Style SheetSo far so good.Then, for the link to the next page in the tutorial, instead of 002printref.htmlI put the long file path in like this:However, instead of taking me to that next page, it downloads a copy of the page into my downloads folder on my C: drive.Is there a way to make this stop?? Do I have to be an administrator to do it (like Powershell)??WTF????????????? Am I the only person on this planet who has this problem? You would think.BTW, I am using SharePoint Online in Office 365. I have read that there is no fix for this. But I just refuse to believe it. I don't have any Java in my web pages and there is no real classified information contained within. It is just bogus.
- 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.
- DSh13Jul 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
- Dvik_11Sep 07, 2020Copper Contributor
Deleted
Thanks for the solution.
in Sharepoint online site,I changed my video file from .htm to .aspx and it is working as well,but in same time the blank.htm file is also downloaded,how can we prevent this downloading,please suggest.
- DeletedSep 07, 2020
Hi Dvik_11 - I don't have a suggestion for the blank.htm download file you're seeing. We haven't seen that with ours.
- LiasGallardoJan 31, 2018Copper Contributor
Deleted thanks for the tip Kelly, this worked perfectly in a document library. I only had to rename the index-home file to aspx and the rest of the files displayed correctly in the browser. Used for html5 video training
- jaya-pandeyFeb 23, 2021Copper Contributor
I saw you response on how you opened HTML5 video file on SP 365. I also have a training created in Articulate Story which is in html format. when I change the extension to .aspx then it doesn't work. Am I doing it correct? Thanks in advance for your help.