Send multipart/form-data to a Azure function app

Hello guys,

We recently received a requirement to develop a service which sends a file to a Azure function app from webMethods.
The function app is expecting a IFormFile as input. Do you have any idea which settings should be used for the pub.client:http service? We assume that the endpoint is expecting to receive data with multipart/form-data as content type so we know that in this case data should be passed to data/args but how can we pass the file name and the file bytes?

Thank you in advance,

You need to use pub.mime.* services for this.

1 Like

Hello neimand,

For posting multipart data through pub.client:http service, you need to create MIME data using pub.mime:* services.

File data needs to be posted as byte and mapped to bytes and other details about file like file name or type will go as headers