Support Questions

Find answers, ask questions, and share your expertise

Apache NiFi processor 'InvokeHTTP' POST with MultipartFile formdata

avatar
New Contributor

I have a NiFi workflow where I am fetching files from a server and now want to upload the fetched files using a POST request. The request works on postman but how do I format this in NiFi. I am using Apache Nifi 1.23.1. 

I followed this article but did not work for me:
@SAMSAL 
https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-processor-InvokeHTTP-POST-with-Multi...

Here is the postman image of the request:

post-request.jpeg

Here is the NiFi InvokeHttp processor configuration :

http1.jpeghttp2.jpeghttp3.jpeg

I am getting the following response when I do this:
< TITLE> Content Server Client Error</TITLE><H1>Error parsing the GET/POST data stream.‹/H1>‹br>Please try again. If the problem persists, contact your Content Server administrator.

What is wrong with my configuration? Please help

0 REPLIES 0