Question

HTTP-caller - Post behaves different than Postman?

  • 20 September 2022
  • 2 replies
  • 9 views

Badge

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

Userlevel 2
Badge +17

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.

Badge

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

Reply