cancel
Showing results for 
Search instead for 
Did you mean: 

Setting content-length in REST PUT snap for SharePoint API

shouldroforion
New Contributor

Hi gang,

Hoping this awesome community can help me figure this out. Our team is trying to reconstruct some pipelines for uploading documents to SharePoint. Where we’re running in to a snag is after we’ve already received an OAuth 2 token and created a SharePoint upload session (both of those are working great), and then attempting to upload the actual file content (this is what is bombing.)

When we explicitly set the content-type header in the snap, we get an error saying the content-length header already exists.

image

image

When we remove the content-type header in the snap, we get an error from SharePoint saying the content-length header is missing.

image

image

Has anyone else run in to this issue on setting content-length? How do you properly set the content-length header in the REST PUT snap?

Cheers,
Mark

2 REPLIES 2

Sowmya_Rayavara
New Contributor III

Hi Mark,

I’m facing the similar issue. Did you get any solution?

Regards,
Sowmya.

Hello Sowmya,
Any solution did you get?
i’m also facing same issue .