Forum Discussion
Dorje-McKinnon
Jan 29, 2019Steel Contributor
SharePoint Online view html , don't download
Hi All
My use case is as follows:
As the database admin I need to regularly (every week) upload a package of HTML / CSS files which are interlinked and make them visible to many staff so that they can see the structure of our Data Warehouse. An automated tool creates the HTML / CSS and it contains hundreds of files.
The problem: When put into a SharePoint Online library if a user clicks on a link to one of the HTML files it downloads rather than displaying the HTML content.
We are using SharePoint Online.
We have tried :
- using classic pages and pointing content editor webparts to the index of this package of html files. The index html displays but the next click downloads the next html file.
- powershell scripting the change html files to ASPX and powershell plus RegEx to fix all the links within files
Does anyone have a simple way to tell SharePoint Online that we actually want it to display html file within one library ?
Happy to hear how you achieve this via hacks or paid solutions.
Many thanks everyone
- Paul de JongIron Contributor
Hi Dorje,
The approach to rename the extension to aspx should work. Do you also end up downloading the aspx file upon clicking?
An alternative approach is to use tools. One option is the tool SLIM Companion Explorer
(http://www.slimapplications.com/product/explorer/). This basically mimics the Explorer View but then in a browser. This way html files but also PDFs, emails etc... can be displayed in the browser.Note: I am affiliated with the vendor
Paul- Dorje-McKinnonSteel Contributor
Hi Paul, thanks for your response.
Yes renaming to ASPX does work, BUT due to the volume of material we're running into issues reliably changing links within the files. We have a lot of automated processes which constantly update the reference material so are keen to see if there is a solution that means we don't have to alter the automated process outputs.
Thanks for declaring your relationship to the vendor. Much appreciated.