Skip to main content
Question

HTTP-caller - Post behaves different than Postman?

  • September 20, 2022
  • 2 replies
  • 26 views

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

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
  • 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
  • September 22, 2022
daveatsafe wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings