HTTP Request - POST

Hi Team,

I have below request:
curl -X POST “” -H “accept: application/json” -H “Authorization: a29uZ3Rlbmc6UGEkJHcwcmQ=” -H “Content-Type: multipart/form-data” -F “file=@nnn.csv;type=application/”

I want to usi http request activity to do the same. Below is a snapshot of it:
Parameter: uploadMethod = WITH_RECORD_TYPE

Simple http authentication in which I am giving the user id and pwd.

Attaching a csv file as attachment

Accept Format: JSON
Method: POST

Issue: I am unable to upload the file. Please suggest

The above issue has been solved.

Hi @Juveria

Can you explain what did you do

Ashwin S

Hi Ashwin,

In my case , if you see the curl req, the variable name that I should use to upload file is “file”, any other variable name will not upload the file
A short description for the request would be as below:
parameter: upload method
Basic http authentication.
Attachment, is the csv file with exact same variable name as mentioned in curl expression.

Hi @Juveria

Have you uploaded the file through http request activity or invoke method

Ashwin S

Yes I did

how did u post FILE using http request?? can u explain and attach the Request builder screenshot or xaml for the same

Could you please tell me how you resolve this issue?