title: Posting multiple files using invokehttp to API using nifi
body: <p>I am having 3 files which i need to post to API end. I am fetching 3 files using FetchHDFS process and i want to pass them to API. How can i pass them.</p>
  
  <p><strong>Input:</strong></p>
  
  <pre><code>3 files in HDFS
  Content-Type: multipart/form-data
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>invokehttp.response.body
  { "message": "Multipart: Boundary not found (user: 'undefined')", "level": "error", "timestamp": "2019-12-11T09:59:05.464Z" }
  </code></pre>
  
  <p><strong>Flow tried:</strong></p>
  
  <pre><code>inputPort --&gt; 3 FetchHDFS process to fetch 3 different file --&gt; invokeHttps
  </code></pre>
  
  <p>curl commnad sample:</p>
  
  <pre><code>curl -X POST "https://xxxxxx/xxxxx" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "file1=@File1.csv;type=application/vnd.ms-excel" -F "file2=@File2.txt;type=text/plain" -F "file3=@File3.csv;type=application/vnd.ms-excel" -F "format=flat" 
  </code></pre>