Skip to main content
Solved

httpcaller add feature service attachment file not found?

  • August 15, 2023
  • 5 replies
  • 35 views

Forum|alt.badge.img+1

Anybody tell me what I'm getting wrong here? Document Link path is valid. No errors in the FME log but attachment not found in the http response?

httpcaller 

Best answer by nielsgerrits

Thanks @nielsgerrits​ ,

 

After clicking Edit Parameters for the value column I've set mime to: image/bmp but attachment file not found error remains.

E.g. R:\\Libraries\\Images\\SE photos non spatial\\Gates\\stricklandgate10.bmp is a valid path in my DocumentLink field and returns an image but still returning the error.

If I check the documentation, it expects a different input parameter? Not "fileobj" but "attachment"

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • August 15, 2023

I think you have to set the correct MIME Type. It is a bit hidden. In the Multipart Upload, click in the Value field, then click on the ... button.


Forum|alt.badge.img+1
  • Author
  • 5 replies
  • August 15, 2023

I think you have to set the correct MIME Type. It is a bit hidden. In the Multipart Upload, click in the Value field, then click on the ... button.

Thanks @nielsgerrits​ ,

 

After clicking Edit Parameters for the value column I've set mime to: image/bmp but attachment file not found error remains.

E.g. R:\\Libraries\\Images\\SE photos non spatial\\Gates\\stricklandgate10.bmp is a valid path in my DocumentLink field and returns an image but still returning the error.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • August 16, 2023

Thanks @nielsgerrits​ ,

 

After clicking Edit Parameters for the value column I've set mime to: image/bmp but attachment file not found error remains.

E.g. R:\\Libraries\\Images\\SE photos non spatial\\Gates\\stricklandgate10.bmp is a valid path in my DocumentLink field and returns an image but still returning the error.

I do not have a working sample lying around for uploading attachments, but I have something similar (update thumbnail) and I put the token and the format in the multipart form upload, not in the query string parameters. Not sure if that is your problem, but it's worth a try?


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • August 16, 2023

Thanks @nielsgerrits​ ,

 

After clicking Edit Parameters for the value column I've set mime to: image/bmp but attachment file not found error remains.

E.g. R:\\Libraries\\Images\\SE photos non spatial\\Gates\\stricklandgate10.bmp is a valid path in my DocumentLink field and returns an image but still returning the error.

If I check the documentation, it expects a different input parameter? Not "fileobj" but "attachment"


salvaleonrp
Enthusiast
Forum|alt.badge.img+20
  • Enthusiast
  • 152 replies
  • June 4, 2024

I think you have to set the correct MIME Type. It is a bit hidden. In the Multipart Upload, click in the Value field, then click on the ... button.

 

 

 

Thanks @nielsgerrits.

I needed thumbnails to show in the pop up gallery of an AGOL web map, instead of a download link.  I was using the Arcade expressions workaround and not too happy with that.

The not so obvious mime-type parameter did it for me. 

I suggested an idea to improve the HTTPCaller and also address multiple mime-type attachments. Please upvote if you like  this idea.