Juveria
(Juveria)
January 8, 2020, 10:18am
1
Hi Team,
I have below request:
curl -X POST “https://api.everbridge.net/rest/uploads/892807736728829?uploadMethod=PARTIAL ” -H “accept: application/json” -H “Authorization: a29uZ3Rlbmc6UGEkJHcwcmQ=” -H “Content-Type: multipart/form-data” -F “file=@nnn.csv;type=application/vnd.ms-excel”
I want to usi http request activity to do the same. Below is a snapshot of it:
URL: https://api.everbridge.net/rest/uploads/892807736728829
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
Juveria
(Juveria)
January 8, 2020, 11:02am
2
The above issue has been solved.
AshwinS2
(Ashwin S)
January 8, 2020, 11:06am
3
Hi @Juveria
Can you explain what did you do
Thanks
Ashwin S
Juveria
(Juveria)
January 13, 2020, 2:36am
4
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:
URL
parameter: upload method
Basic http authentication.
Attachment, is the csv file with exact same variable name as mentioned in curl expression.
AshwinS2
(Ashwin S)
January 13, 2020, 6:16am
5
Hi @Juveria
Have you uploaded the file through http request activity or invoke method
Thanks
Ashwin S
Rahul24293
(Rahul Ramachandran)
March 27, 2020, 9:45am
7
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?