Example of how you can upload files to SharePoint using Microsoft Authentication Library and Microsoft Graph
- Clone the repository to your computer
- In your CLI navigate inside the vue-app folder
- Run 'npm install'
- Update the msal config with your appId and tenantID.
- Update the graph url in the uploadingDocWithGraph.js file.
- Run 'npm run dev'
For more information about the code take a look at my blogposts:
Upload files to SharePoint with JavaScript using Microsoft Graph and Microsoft Authentication Library This blogpost describes the code related to authentication and uploading the file. It also shows you how to register your app and obtain your site-id - which you need to run the code.
How to update field values in SharePoint using Microsoft Graph. This blogpost describes how to update different field values in SharePoint using JavaScript and Microsoft Graph
Related repositories: Update fields in SharePoint using Microsoft Graph