Issue with file upload batch requests #2538
Replies: 2 comments 3 replies
-
Thanks for raising this @TheCynicalBadger It seems that the API may be doing the work of encoding the URL from the json body so it would be unnecessary/incorrect to have the URL encoded from the client side while its in the json body(technically the API makes the HTTP requests for us). Any chance you can confirm if you can do this successfully while using the SDK? |
Beta Was this translation helpful? Give feedback.
-
@andrueastman Thanks for the reply. I probably should have mentioned this in my original post. The issue comes from the GraphClient().Drives[driveId].Items[itemId].ItemWithPath(fileName).Content.ToPutRequestInformation(content) I have been unable to get the SDK to batch post files. |
Beta Was this translation helpful? Give feedback.
-
There is a closed issue related to this question, #2089. I don't know if this is still a graph issue or not though, the problem seems to arise with the URI encoding before the batch request is made. I can get requests to work on graph explorer but only if the '!' character of the url in graph is not encoded to %21.
If you submit the drive ID with the '!' character the endpoint works and returns a 201 Created. If you encode the '!' with %21 like the request builder does it returns a 501 Not Implemented.
Any thoughts? Not sure if this is an SDK or a graph issue.
Beta Was this translation helpful? Give feedback.
All reactions