Closed geetharamu closed 5 years ago
I am able to resolve the issue by taking url from => value[0].permissions[0].link.webUrl . If i share the link with other users, they can view the document without sign in. Is there a way to prompt the user to login to access the shared document?
{
"webUrl": "https: //1drv.ms/...",
"value": [
{
"id": "id",
"name": "Document",
"size": 9333,
"webUrl": "https: //1drv.ms/w/s!APPrlBIhteE-gXE",
"thumbnails": [{}},
"permissions": [
{
"roles": [
"read"
],
"shareId": "s!AvPrlBIhteE-gXG32q4Qdg9aiJ_h",
"link": {
"type": "view",
"webUrl": "https: //1drv.ms/w....",
}
}
]
}
]
}
@geetharamu the File Picker simply renders a frame of the hosted OneDrive site. This request seems to me like a request for additional functionality for OneDrive's web presence. I recommend adding this as an ask to https://onedrive.uservoice.com/.
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 10 days. It will be closed if no further activity occurs within 10 days of this comment. Thank you for your contributions to OneDrive API Docs!
I am using v7.0 one drive sdk and want to share the file with different users. I have attached file from one drive file picker dialog and received below response on success. { value: [ { id: "4535465AA54SDE", name: "filename", size: 764674, webUrl: "https://1drv.ms/w/s!ANNc" } ] }
Using value[0].webUrl link "https://1drv.ms/w/s!ANNc", I am trying to open the attached file with different userId. Url doesnt open and I am getting error 'This item might not exist or is no longer available'
In case of google drive, if we do the same it will prompt for 'Request Access', but not in onedrive. Can anyone please help how to solve the issue?