Skip to main content
Question

HTTP-caller - Post behaves different than Postman?

  • September 20, 2022
  • 2 replies
  • 45 views

hrinn
Contributor
Forum|alt.badge.img+4
  • Contributor
  • 13 replies

I am using the http-caller to upload attachments to a arcgis portal via the addAttachment in the Rest API. It works fine to upload but the image does not behave in the same way as when I make the post with postman. The attachment link in the portal downloads the image instead of showing it in the browser. This is not the case with Postman. Any help appreciated

image

2 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • September 21, 2022

Hi @hrinn​,

Perhaps try setting Body Upload Data to Upload from File instead of Multipart, then set Content Type to JPEG. This should allow streaming to a browser.


hrinn
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 13 replies
  • September 22, 2022

Hi @hrinn​,

Perhaps try setting Body Upload Data to Upload from File instead of Multipart, then set Content Type to JPEG. This should allow streaming to a browser.

Yes you are right @daveatsafe​ . I totally missed the MIME type button

image