Can anyone help to get C#.NET code to upload large files into SharePoint using Graph API.
Thank you and regards, Rakesh
Can anyone help to get C#.NET code to upload large files into SharePoint using Graph API.
Thank you and regards, Rakesh
The answer in the linked question shows how to use the LargeFileUpload
class that comes as part of the Microsoft Graph C# SDK.
You do not need to implement the class yourself.
This link shows the C# code needed to use the SDK classes/functionality
Try with this:
DriveItem file = await graphClient
.Sites["IdSite"]
.Drives["Id"]
.Items["IdDrive"]]
.ItemWithPath("nameFile")
.Content
.Request()
.PutAsync<DriveItem>(stream);