Setting content-length in REST PUT snap for SharePoint API

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.

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

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

Hi Mark,

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

Regards,
Sowmya.