Hi Folks,
I am trying to extract the contents of the attachment in the request, but I am not able to read the attachment data.
Request - I am sending an xml file & a jpg file as attachments.
curl -i -X POST -F "data=@download.jpg" -F "data=@sample.xml" https://<IP>:<port>/test/attachments
I am logging the below context variables in the policy. I am also able to see that gateway has identified that request has 2 attachments . But unable to view the attachment body-
- request.parts.1.size - 8783
- request.parts.2.size - 88
- request.parts.1.body -
- request.parts.2.body -
- request.parts.1.contentType - image/jpeg
- request.parts.2.contentType - application/octet-stream
Thanks,
Abhishek Subramanya