ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
21 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
var driveItem = await serviceClient.Me.Drive.Root.ItemWithPath(itemPath).Content.Request().PutAsync<DriveItem>(stream);
The example code above is no longer working with Microsoft.Graph v5.*. Can you please update it?
I tried to update it; however Request() is not defined:
await serviceClient.Drives[oneDrive!.Id].Items["root"].ItemWithPath(itemPath).Content.Request().PutAsync<DriveItem>(fileStream);
This question is related to the following Learning Module
The following code should work for small file:
var oneDrive = await serviceClient!.Users[oneDriveUser].Drive.GetAsync();
or
var oneDrive = await serviceClient!.Me.Drive.GetAsync();
then:
await serviceClient.Drives[oneDrive!.Id].Items["root"].ItemWithPath(itemPath).Content.PutAsync(fileStream);