Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3630

Azure Data Factory Uploading file using REST Multipart/form-data

$
0
0

I am calling a REST endpoint which takes a file as multipart form-data as the body. Here is the postman CURL

curl --location --request POST 'https://assets-api-uat.test.services/api/upload' \--header 'Content-Type: multipart/form-data' \--header 'loadType: DELTA' \--header 'Authorization: Bearer {{accessToken}}' \--header 'Cookie: ARRAffinity=6d69fc278349240ce92e5954e0b0d0f1ee5c6964839ee2281238f950751dbfa5; ARRAffinitySameSite=6d69fc278349240ce92e5954e0b0d0f1ee5c6964839ee2281238f950751dbfa5' \--form 'upload=@"/C:/Users/test/Downloads/testhazards.zip"'

The above works fine.

I am trying to implement the above using Azure Data Factory as belowenter image description here

However the Azure Data Factory gives Bad Request error (400). How do I specify the "upload=filename" in the web activity?

Below is the changes based on the suggested answer

enter image description here


Viewing all articles
Browse latest Browse all 3630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>