Why do I need to manually reset the body stream position to 0 when uploading a driveitem? #3048
Nasoki-Koide
started this conversation in
General
Replies: 1 comment
-
|
This is expected behavior. A For typical file uploads, resetting the stream before calling This keeps behavior predictable and consistent with .NET stream semantics. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I uploaded a file using the PutAsync method in Microsoft.Graph.Drives.Item.Items.Item.Content.ContentRequestBuilder.
If the stream's position is not set to 0, only the remaining data from the current position is uploaded.
Why doesn't the PutAsync method automatically reset the stream position?
It seems unnecessary to require users to manually set the position themselves.
Beta Was this translation helpful? Give feedback.
All reactions