Forum Discussion
Charles Willwerth
Apr 28, 2017Brass Contributor
SharePoint Online modifying .aspx files I upload?
Our initial issue, years ago, was that SharePoint Online doesn't allow us to set the Permissive Browser handling on web application like SharePoint Server does. This meant that in document libraries where we upload .html files, users couldn't just open the html files in-browser; they would be asked to download them.
Our work-around, which had been working for a couple of years, was to rename the files with a .aspx extension and upload that instead.
Now, when we do that, our <HTML> tags were gettign changed to "<HTML xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>".
Is there any way to stop this? It's causing some problems further downstream in our day-to-day work, and the people that usually open these aren't used to editing html files.
- Robert NavarroCopper Contributor
Hi Chuck. Are these .html files that you are changing to .aspx normal html documents and properly formatted to adhere to the HTML 5 standard? I'm uploading my files after changing their extension to .aspx and they are not being modified in any way by SharePoint. My users can just view the files in the browser. Note: I'm NOT using a web part to view these files.
-Roberto
Hi Charles,
I'm wondering, what is the reason of storing .html documents in the libraries in your case?
We used to store tons of html in document libraries, but for the reason of showing the content in CEWPs linked to specific .html files.
--
Andrew
- Chuck WillwerthCopper Contributor
Hi Andrew,
The reason is that this is the accepted format for these files when they get submitted to a government system.
Chuck