.NET Framework 4.8 ASP.NET Webform C# Upload File to OneDrive Sharepoint
I am trying to locate a solution for what seems like a really simple task. I need to be able to upload a simple text file to One Drive/Sharepoint. This is on the FAA network and I want to do this so the Power BI report that will reference this datasource/file will refresh. Power Bi will not refresh if the file is located on a shared network drive, but will refresh if the file it references is up on One Drive/Sharepoint. I have located some vague solutions using Microsoft.SharepointOnline.CSOM and Microsoft.Graph, but they are all pretty vague and appear to miss some important step by step info like all the “usings” required, credentials, etc. Does anyone have a simple step by step for a .NET Framework 4.8 ASP.NET Webform application to be able to upload a simple file to a One Drive/Sharepoint folder?