0

When I am trying to upload image using graph EndPoint then images are getting corrupted. Endpoint - PUT https://graph.microsoft.com/v1.0/drives/{drive_id}/items/{item_id}:/{file_name}:/content

Anything I am missing here?

SharePoint Message When trying to view uploaded (through above code)image. Tried without encoding as well. Even file name is not encoded then also its same behavior.

Note - This issue is with only images. Other files like PDF, CSV are working fine. enter image description here

1

1 Answer 1

1

Changing form-data to binary solved my problem.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.