I have uploaded some ASPX files to my SharePoint document library. When I click on the file, SharePoint downloads the file instead of rendering it in browser.

How can I fix this?

Thank you for assistance.


Upload them into Site Pages library.

If you upload them into Document library this is like document not like page. Use correct library template.

| improve this answer | |
  • Well there are folders, js files and PDF files mixed. Document library is not suited for that content. I'm trying to upload a web site which should be rendered from document library. – Brlja Jan 10 '19 at 12:20
  • 1
    But SharePoint doesn't working this way... you should upload aspx pages into Site Pages folder and the rest under SiteAssets and edit references.... Or use simply IIS Site not SharePoint. – Zdeněk Vinduška Jan 10 '19 at 12:27

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.