I'm struggling since some weeks ago trying to interact/automate a way to upload files from a Web App created in React and upload files to a Sharepoint Online Site – in a specific folder. The WebApp is hosted in Azure and using a C# .Net Core 2.2 as backend.

I'm trying to using some kind of REST API that help me out with this task (Could be on React in frontend, or in C# Core or C# MS FW .Net for backend) I'm searching across internet a way to do it but all the testings were failed.

Someone can give me some insight, tip or advice on how to achieve this?

I'm trying:

  • Use code from Microsoft WebPage (Using jQuery).

  • Using PnP, but on my localhost I receive a CORS problem (I'm trying using Client ID and Secret ID to interact with Sharepoint).

1 Answer 1


I resolve the problem using Microsoft Graph. I have a backend created on C# .Net Core, just I needed to create an application on Microsoft Azure Portal, linked to MS Graph API, adding permissons and generate a Secret ID to link the app with the BackEnd.

Sounds easy, but it's required also integrate the Microsoft Fundation to authenticate the users and allow access to modify, read and delete information from Office 365.

Totally worth it the time spend implementing this module

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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