Skip to main content
Solved

httpcaller add feature service attachment file not found?


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

rowdy wrote:

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"

View original
Did this help you find an answer to your question?

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+52

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
  • August 15, 2023
nielsgerrits wrote:

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+52
rowdy wrote:

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+52
  • VIP
  • Best Answer
  • August 16, 2023
rowdy wrote:

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+15
  • Enthusiast
  • June 4, 2024
nielsgerrits wrote:

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.

 


Did this help you find an answer to your question?

Reply


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