Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,225 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Endpoint: https://graph.microsoft.com/v1.0/drives/${driveID}/root:/${folder}/${filename}:/content
Content-Type: text/plain
Filename: Test.xlsx
I have an excel file with multiple sheets, i uploaded it to my system and should trigger the sharepoint upload.
The excel file was uploaded to sharepoint but when I open the sharepoint an error pops out:
This is how i converted excel file to Binary:
var file = document.getElementById("myFile").files[0];
var reader = new FileReader();
reader.onload = function(ev) {
var array = ev.target.result;
var fileByteArray = [];
for (var i = 0; i < array.length; i++) {
fileByteArray.push(array[i]);
}