You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var launchOneDrivePicker = function (oneDriveApplicationId: string) {
return new Promise(function (resolve, reject) {
var odOptions: any = {
clientId: oneDriveApplicationId,
multiSelect: true,
action: 'download',
openInNewWindow: true,
advanced: {
redirectUri: 'http://localhost:3000',
scopes: 'Files.ReadWrite.All',
queryParameters:
'select=id,name,size,file,folder,photo,@microsoft.graph.downloadUrl',
filter:
'folder,.png,.jpeg,.jpg' /* display folder and files with extension '.png' only */,
accessToken:
' TOKEN_HERE',
endpointHint: 'https://contoso.sharepoint.com/shared%20documents/',
},
success: function (files: any) {
console.log('success');
},
cancel: function () {
console.log('cancel');
},
error: function () {
console.log('error');
},
};
window.OneDrive.open(odOptions);
});
};
But when call the function launchOneDrivePicker with a button no thing happen no error no newWindow
so i use good Token that i echeive use microsoft auth
The text was updated successfully, but these errors were encountered:
sarobidygmail12
changed the title
Cannot embed Piker oneDrive in react.js, using v7.2
Cannot embed Picker oneDrive in react.js, using v7.2
Jun 24, 2024
Category
Hi i try to embed picker one drive :
My config :
i init it with this code :
But when call the function launchOneDrivePicker with a button no thing happen no error no newWindow
so i use good Token that i echeive use microsoft auth
I followed the documentation how to do it, but it still doesn't work :
https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/?view=odsp-graph-online
Somme can give me a help
The text was updated successfully, but these errors were encountered: