0

There are some HTML files in our O365 SharePoint Online library. We want to open those files directly in browser instead of downloading.But there is no option in SP Online.Please suggest as we can only open aspx files directly not HTM.

1
  • Hi Adarsh,In SharePoint on premise server, we could set Browser File Handling to Permissive for users to open html files directly in the browser. But in SharePoint Online, there is no options for this. may be you can try to rename the file to .aspx file or use Page viewer to open these html file Sep 4, 2018 at 5:44

3 Answers 3

1

In SharePoint on-premises, we can set Browser File Handling to Permissive for users to open html files directly in the browser. But in SharePoint Online, there is no options for this.

Workaround:

Rename the files, replace .html with .aspx. SharePoint Online will open .aspx in browser.

2
  • 2
    when renaming the html to aspx I get an error file not found. Jun 2, 2019 at 20:02
  • Thanks, this method worked for us. We have some secure files that needed to be opened in a specific application and not in the browser. By creating .aspx files and using javascript, we are able to download the files and open them using the required application
    – Noorul
    Oct 15, 2023 at 8:51
1

You can append "web=1" to the URL of your document so it will render in web view instead of letting your download the item.

0

You can use the Page Viewer Web Part to display a Web page, file, or folder on a classic SharePoint page. You enter a hyperlink, file path, or folder path to link to the content.

Notes:

  • You can use the Page Viewer Web Part only in a browser that supports the HTML IFRAME element.
  • Displaying a file or a folder requires Microsoft Internet Explorer.

Reference here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.