<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to render aspx files when uploaded to SharePoint programmatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-render-aspx-files-when-uploaded-to-sharepoint-programmatically/m-p/12725887#M2020109</link>
    <description>&lt;P&gt;I am new to SharePoint. I have written a simple python script that basically connects to SharePoint and uploads files (aspx and other frontend files) from a folder on my local machine to a specific folder on the SharePoint site. Related to SharePoint this topic is discussed in the python course.&lt;/P&gt;
  &lt;P&gt;To facilitate the script to communicate with SharePoint, I have created an App principal under SharePoint using the SharePoint App-Only model. &lt;/P&gt;
  &lt;P&gt;Then, I have provided the below permissions to the App principal through 'appinv.aspx', &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;AppPermissionRequests AllowAppOnlyPolicy="true"&amp;gt;&lt;BR /&gt;  &amp;lt;AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl"/&amp;gt;&lt;BR /&gt;&amp;lt;/AppPermissionRequests&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The script can successfully authenticate itself and also upload the files to the folder on SharePoint. But then when I manually go to the SharePoint folder and click on the aspx file, example: index. aspx; the file gets downloaded instead of getting rendered.&lt;/P&gt;
  &lt;P&gt;There is no issue with the file i.e. it is not corrupted because when I manually upload the same file onto the same folder, then there is no issue, the file gets rendered.&lt;/P&gt;
  &lt;P&gt;In regards to the permissions for the App prprincipalI've already given 'FullControl' at the scope 'sisite collectioneb' level. I also tried changing the scope from 'http://sharepoint/content/sitecollection/web' to 'http://sharepoint/content/sitecollection', this didn't work as well&lt;/P&gt;
  &lt;P&gt;Please can somebody help me with this?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 04:27:18 GMT</pubDate>
    <dc:creator>former_member838817</dc:creator>
    <dc:date>2023-01-26T04:27:18Z</dc:date>
    <item>
      <title>Unable to render aspx files when uploaded to SharePoint programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-render-aspx-files-when-uploaded-to-sharepoint-programmatically/m-p/12725887#M2020109</link>
      <description>&lt;P&gt;I am new to SharePoint. I have written a simple python script that basically connects to SharePoint and uploads files (aspx and other frontend files) from a folder on my local machine to a specific folder on the SharePoint site. Related to SharePoint this topic is discussed in the python course.&lt;/P&gt;
  &lt;P&gt;To facilitate the script to communicate with SharePoint, I have created an App principal under SharePoint using the SharePoint App-Only model. &lt;/P&gt;
  &lt;P&gt;Then, I have provided the below permissions to the App principal through 'appinv.aspx', &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;AppPermissionRequests AllowAppOnlyPolicy="true"&amp;gt;&lt;BR /&gt;  &amp;lt;AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl"/&amp;gt;&lt;BR /&gt;&amp;lt;/AppPermissionRequests&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The script can successfully authenticate itself and also upload the files to the folder on SharePoint. But then when I manually go to the SharePoint folder and click on the aspx file, example: index. aspx; the file gets downloaded instead of getting rendered.&lt;/P&gt;
  &lt;P&gt;There is no issue with the file i.e. it is not corrupted because when I manually upload the same file onto the same folder, then there is no issue, the file gets rendered.&lt;/P&gt;
  &lt;P&gt;In regards to the permissions for the App prprincipalI've already given 'FullControl' at the scope 'sisite collectioneb' level. I also tried changing the scope from 'http://sharepoint/content/sitecollection/web' to 'http://sharepoint/content/sitecollection', this didn't work as well&lt;/P&gt;
  &lt;P&gt;Please can somebody help me with this?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 04:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-render-aspx-files-when-uploaded-to-sharepoint-programmatically/m-p/12725887#M2020109</guid>
      <dc:creator>former_member838817</dc:creator>
      <dc:date>2023-01-26T04:27:18Z</dc:date>
    </item>
  </channel>
</rss>

