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 "email@example.com" -F "firstname.lastname@example.org" 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