How to send a pdf file in Post method of rest API

Hello Community,

I want to post a file to one api, but i am not sure how can i do it using uipath Http request activity.

I am able to send the file in the postman tool using the api.

My api is "http://api.xyz/{apikey}/process.

I want to send a pdf file to this api.

In postman I have given the api and in body section I have ticked the form-data and then selected the pdf file.
My responce is successful.

Can anyone please help me to figure out how can I do the same in uipath.

Please find below image of the postman for reference.

image

1 Like

Try once by adding the attachment to the http request we have in the properties @uppatel

1 Like

@HareeshMR Thanks for your solution,

It works for me.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.