Upload a file to a SharePoint drive using Microsoft Graph API.
Access token from getSharePointTokenUserAuth
File content as ArrayBuffer
Drive ID (e.g. , 'ab!5xqiQKeGnEGeI02fc4Mu5HrH_BkaM1FNnCohEqq7eEnQYz1prATORbPSv-3951Ny')
File path (e.g. , '/path/to/file.txt')
Return upload response
const uploadResponse = await uploadFileEval(ctx, token, { driveId: 'ab!5xqiQKeGnEGeI02fc4Mu5HrH_BkaM1FNnCohEqq7eEnQYz1prATORbPSv-3951Ny', filePath: '/path/to/file.txt', arrayBuffer: fileArrayBuffer,}); Copy
const uploadResponse = await uploadFileEval(ctx, token, { driveId: 'ab!5xqiQKeGnEGeI02fc4Mu5HrH_BkaM1FNnCohEqq7eEnQYz1prATORbPSv-3951Ny', filePath: '/path/to/file.txt', arrayBuffer: fileArrayBuffer,});
Upload a file to a SharePoint drive using Microsoft Graph API.