Forum Discussion
niteshas
Jan 20, 2021Copper Contributor
Unable to download more than 1GB file from SharePoint Personal site
Hi, We are downloading files from SharePoint site using below API. /_api/web/getFileByServerRelativeUrl('{0}')/$value For download I am using the OpenRead method of WebClient object like ...
kasinaatRMP
May 04, 2022Copper Contributor
Hi,
I think the scope while acquiring the toke is the problem here.
For Onedrive : https://<tenant>-my.sharepoint.com
For Sharepoint : https://<tenant>.sharepoint.com
By setting this above scope while getting the access_token, I am able to download files from both Sharepoint and Onedrive.
Hope this helps!
I think the scope while acquiring the toke is the problem here.
For Onedrive : https://<tenant>-my.sharepoint.com
For Sharepoint : https://<tenant>.sharepoint.com
By setting this above scope while getting the access_token, I am able to download files from both Sharepoint and Onedrive.
Hope this helps!