1

In my Site Assets folder, I have a CSS file and an HTML file.

If I click the CSS file it opens a new tab and shows the file content, aka css code.

If I click the HTML file it downloads the file instead of showing it. And if I try to copy the URL and paste it into the URL, it says "File was not found"

https://xxxxxxxxx.sharepoint.com/SiteAssets/configure-page.html

I've made sure that the file is published. Why can't i view the html file?

Even if I click the ... and hit OPEN it still downloads.

Note The same problem counts for ASPX files.

-1

Please use aspx file to instead of the html file.

Open the site using SharePoint designer, go to All Files->SiteAssets-> Add an aspx file. enter image description here

enter image description here

Or as a workaround, we can create a document library to store the the aspx pages.

  • Did you read my note? Note The same problem counts for ASPX files. – Carsten Løvbo Andersen Dec 6 '17 at 10:13
  • Yes, I see your note, did you create aspx page following the steps in my reply? – LZ_MSFT Dec 7 '17 at 1:24
  • Yes no matter how you create the aspx page it still downloads the page and not displaying it – Carsten Løvbo Andersen Dec 7 '17 at 6:59
  • Please try to create a document library to store the aspx pages. The Site Assets only store CSS, JS files – LZ_MSFT Dec 7 '17 at 7:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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