[Solved] How to upload (multiple) files to SharePoint Online using CSOM?

I tested the below code in my local environment; it works fine. <div> <asp:FileUpload ID=”upldGradeReport” runat=”server” /> <asp:FileUpload ID=”upldExpenseReceipt” runat=”server” /> <asp:Button ID=”btnSubmitForm” OnClick=”SubmitButton_Click” runat=”server” Text=”Submit” /> </div> protected void SubmitButton_Click(object sender, EventArgs e) { sendToSharePoint(); Response.BufferOutput = true; Response.Redirect(“Submission.aspx”); } protected void sendToSharePoint() { try { string siteUrl = “https://tenant.sharepoint.com/sites/lee”; ClientContext clientContext = new … Read more