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
Yes. I'm actually uploading to SharePoint, but SharePoint and OneDrive for Business are pretty much the same. So what works for OneDrive should be fine. Thank you!
Thank you for this, but I'm afraid OneDrive for Business and SharePoint do not work, even though they are supported in the Graph API. The reason is because you have the "me" drive hard-coded, rather than allowing us to provide the drive ID. Here's an example of where it is hard-coded:
Justin Levene (@jplevene) yes we have 4MB limitation for emails. Also we have plan to support emails larger than 4MB and I cannot give you the ETA as of now, this is going to take some time.
Muthurathinam (@muthurathinam) could you please allow us to pass option "@microsoft.graph.conflictBehavior": "replace" as well, since I want to replace it rather than rename
Justin Levene (@jplevene) The package depends on the particular version of msal. you can refer msal version number under devDependencies in package.json. Is your application depends on some other version of msal ?
Activity
muthurathinam commentedon Sep 11, 2018
David Cannon (@DavidCannon) To upload a file to OneDrive..?
DavidCannon commentedon Sep 11, 2018
Yes. I'm actually uploading to SharePoint, but SharePoint and OneDrive for Business are pretty much the same. So what works for OneDrive should be fine. Thank you!
muthurathinam commentedon Sep 11, 2018
David Cannon (@DavidCannon)
Support for Large File uploading to OneDrive is implemented and will be available in our next release.
Thank you for your patience till our next release. We really appreciate it!
883190
muthurathinam commentedon Sep 22, 2018
Released: https://github.com/microsoftgraph/msgraph-sdk-javascript/releases/tag/1.3.0
DavidCannon commentedon Sep 22, 2018
Thank you for this, but I'm afraid OneDrive for Business and SharePoint do not work, even though they are supported in the Graph API. The reason is because you have the "me" drive hard-coded, rather than allowing us to provide the drive ID. Here's an example of where it is hard-coded:
return encodeURI(/me/drive/root:${path}${fileName}:/createUploadSession);Found here: https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/1.3.0/src/tasks/OneDriveLargeFileUploadTask.ts#L100
Instead, we should be allowed to provide an options driveId, which then make the endpoint like this:
/drives/${driveId}/root:${path}${fileName}:/createUploadSessionAnd the endpoint to retrieve items from the root folder of a SharePoint drive would look something like this:
/drives/${driveId}/root/childrenIt would be great if this SDK supported SharePoint (and OneDrive for Business). Thanks for all your hard work! 👍
muthurathinam commentedon Sep 24, 2018
David Cannon (@DavidCannon) Thanks for notifying, Will work on this.
jplevene commentedon Oct 10, 2018
We are hitting the 4mb limit with emails as well. Our client's are obviously not liking it with some already abandoning 365.
muthurathinam commentedon Oct 11, 2018
Justin Levene (@jplevene) yes we have 4MB limitation for emails. Also we have plan to support emails larger than 4MB and I cannot give you the ETA as of now, this is going to take some time.
songpr commentedon Nov 27, 2018
Muthurathinam (@muthurathinam) could you please allow us to pass option "@microsoft.graph.conflictBehavior": "replace" as well, since I want to replace it rather than rename
muthurathinam commentedon Dec 4, 2018
songpr Thank you for the ask. Will look into this.
Pjata commentedon Apr 4, 2019
Any update on this issue? We would like to use OneDrive as our document storage and this would greatly affect our decision.
muthurathinam commentedon Apr 5, 2019
Pjata Will fix this in next release which is scheduled to be released before end of April.
muthurathinam commentedon May 11, 2019
David Cannon (@DavidCannon) Justin Levene (@jplevene) songpr Pjata Your ask is done in this preview release. Please try and let me know your feedback. Refer this guide.
jplevene commentedon May 13, 2019
Slight "error" I'm affraid. On the version site it says to load the script use:
<script src="https://secure.aadcdn.microsoftonline-p.com/lib/VERSION/js/msal.min.js"></script>Changing VERSION to anything above 0.2.4 doesn't work. This is under "Creating an instance of MSALAuthenticationProvider in browser environment"
muthurathinam commentedon May 13, 2019
Justin Levene (@jplevene) The package depends on the particular version of msal. you can refer msal version number under devDependencies in package.json. Is your application depends on some other version of msal ?
muthurathinam commentedon May 15, 2019
Fixed in 1.7.0 release.
DharmendraNaberly commentedon Jan 28, 2020
How to upload 5 files of 1MB each, as attachment in Outlook.