HTTP Request MultiPart Form Data

I would like it if MultiPart Form Data were easier to work with in UiPath. It is very straightforward to do in Postman, but much harder to create in UiPath.

1 Like

Hi @mathteacherzee

Could you please elaborate whether there anything specific that you would like to see in the activity?

Normally, you simply provide your list of attachments and the activity takes care of everything else. Sounds simple enough :sweat_smile:

Hi @loginerror

I also encountered the same issue with the OpenAI API for Files. Please see the API Reference.

How can I configure it in the HTTP Request activity? Even though I add the file as attachment the API still requests multipart/form-data.

ā€œmessageā€: ā€œ415 {\n "error": {\n "message": "Invalid Content-Type header (application/json; ), expected multipart/form-data. (HINT: If youā€™re using curl, you can pass -H ā€˜Content-Type: multipart/form-dataā€™)",\n "type": "invalid_request_error",\n "param": null,\n "code": null\n }\n}\nā€

Thanks.