Skip to main content
Question

Send pdf document as input to REST API

  • May 5, 2023
  • 1 reply
  • 535 views

Forum|alt.badge.img+5
  • Navigator | Tier 3

Hi,

 

I’m trying to send the pdf document to rest api using HTTP File POST package. But im getting the error below. I’ve given content-type = application\pdf in custom headers. Could anyone help on this?

 

Status: 415  {"error":{"code":"UnsupportedMediaType","message":"Request content type is not supported."}}

This topic has been closed for replies.

1 reply

Shreya.Kumar
Pathfinder Community Team
Forum|alt.badge.img+14
  • Pathfinder Community Team
  • May 19, 2025

probably because the API you’re trying to use expects a multipart/form-data structure instead of application/pdf.

Closing this thread now, but please feel free to start a new thread if you need more help!