1

i am trying to pass two files in multipart form in the Azure Logic App in binary format. But the upload request gets reject. When i pass the same request in postman, the request is successful. PFB the details.

Postman Request:

enter image description here

Header: enter image description here

Postman Curl Request:

curl --location --request POST 'https://abc/kofax/claims' \
--header 'x-abchk-msgid: 0214945a-509a-48af-9df2-281352806421' \
--header 'Content-Type: multipart/mixed' \
--header 'Authorization: Bearer XXXXXXXXX' \
--form 'claimScanPDF=@"/C:/Users/ashutosh.bajpai/00000438.PDF"' \
--form 'claimScanJSON=@"/C:/Users/ashutosh.bajpai/kofax-op.json"'

Azure Logic App: enter image description here

--testboundary
{
  "$content-type": "multipart/mixed",
  "$multipart": [
    {
      "body": @{concat(body('GETFILEPDF').$content)},
      "headers": {
        "Content-Disposition": "form-data; name:claimScanPDF; filename=@{triggerBody()?['FileNamePDF']}"
      }
    },
    {
      "body": @{concat(body('GETFILEJSON').$content)},
      "headers": {
        "Content-Disposition": "form-data; name:claimScanJSON; filename=@{triggerBody()?['FileNameJSON']}"
      }
    }
  ]
}
--testboundary--

i only get generic error message in response - The requested URL was rejected. Please consult with your administrator. Please help to understand what is the difference between postman and logic app request.

Skin
  • 9,085
  • 2
  • 13
  • 29
Ashutosh
  • 111
  • 14

0 Answers0