Share via

SharePoint Small Files Upload API Creating 0 Bytes Even though Content is Passed

Bhargav Purohit 0 Reputation points
2023-10-14T08:10:22.1466667+00:00

We are using Microsoft Graph API Put method for Uploading the Small Files. Please find the API Details Below.

Put Method -

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{parent-id}:/{filename}:/content

Most of the times We see files getting uploaded correctly with all the content.

But Sometimes We see files getting created with 0 Bytes (No Content) in Sharepoint eventhough the content is passed. Could You Please help on this. Please find the example attached. Thank You.

SharePoint_0_Byte_FileCreated.JPG

Microsoft Security | Microsoft Graph
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.