Add Attachments Via Rest API Assigning Incorrect Mime Type - Images

256
0
07-10-2022 08:20 PM
VH_MapS
New Contributor III

Hello, I am using FME to upload images (.JPG) as attachments to a hosted feature service (AGOL) using the HTTP Caller transformer and the ArcGIS REST API. The images are transferring just fine - but the server (AGOL side) is assigning the incorrect mime type.

The images are successfully uploaded, but the server assigns the incorrect mime type. This causes the images to download, and not display in the browser. I have tried manually setting the 'content_type' to 'image/jpeg', but the server seems to assign the mime type to 'application/octet-stream' every time.

I have been setting the 'content_type' parameter to 'image/jpeg' without success. I have also tried omitting this parameter - with no success.

Does anyone have any advice? Is there any obvious syntax items I'm overlooking?

Thanks!!!

0 Kudos
0 Replies