Forum Discussion
Can not upload webpages to Site Pages under modern Group/Team Sites.
- Dec 08, 2017
I have got the root cause and the solution of this issue from Microsoft support team as below.
In order to allow the upload .aspx files to the site pages library in modern group/team sites, the “Custom Scripting” Feature must be enabled on the group site.
To do so,
using the SharePoint Online Management Shell, running the script “Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0” will allow .aspx pages to be uploaded to the group site.
I have got the root cause and the solution of this issue from Microsoft support team as below.
In order to allow the upload .aspx files to the site pages library in modern group/team sites, the “Custom Scripting” Feature must be enabled on the group site.
To do so,
using the SharePoint Online Management Shell, running the script “Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0” will allow .aspx pages to be uploaded to the group site.