I am currently using xlsx.full.min.js code to export a REST API call result to an Excel file then download it directly from the browser.
When using the following code the file gets downloaded successfully. Now our client has changed the requirement and now they want this report to be directly uploaded to a SharePoint Online Document Library. Is there a way to do it using jQuery/Javascript?
XLSX.utils.book_append_sheet(excelBook, jsonToSheet, "Accounts");
XLSX.writeFile(excelBook,fileName);
I am Already running the Jquery from SharePoint Online page so i dont think i have to user tokens to get authenticated to upload csv/excel file. i need reference to a blog which can help me to upload csv/excel file generated from the above code to sharepoint online document library.