Forum Discussion

JonJon1414's avatar
JonJon1414
New Contributor
14 years ago

Attachments in REST request - add attachment in POST body

Hi,

I'm currently doing some tests on a REST interface which accepts attachments to be uploaded. This works fine when I add the attachment in the Attachments Message Tab.

However, I thought it was also possible to put the attachment in the POST body of the request (Base64 encoded). I've tried this but it doens't work : the interface returns an error message saying there is no attachement attached to my request.

Could someone give me more information about this? Most of all, I'm trying to understand what's the difference between adding the attachement in the attachment tab and putting it in the POST body.

Any clarification would be more than welcome!

Many thanks in advance,
best regards,
Jonas
No RepliesBe the first to reply