Send PDF file as multipart form-data

Product/components used and version/fix level:

10.15

Detailed explanation of the problem:

Hello,
I want to upload a PDF file to a REST API using pub.client.http as follows:

The file has been downloaded previously in stream format.

To perform the upload, I referred to topic #245230 to set up my service:
service

For information, I have set the content-type to multipart/form-data.

I have the following error:
com.wm.app.b2b.server.ServiceException: [ISC.0064.9401] Content does not match the content type: multipart/form-data

Do you have any ideas to suggest to me?

I thank you in advance.

Error messages / full error message screenshot / log file:

Question related to a free trial, or to a production (customer) instance?

production

1 Like

hi @RCA ,
Can you please refer the below tech article for your reference.

Regards
Vikash Sharma

1 Like

Hello,

Thank you for your answer.
Perfect! It helped me to solve my issue