title: NiFi- how to http post a PDF document
body: <p>I wanted to use NiFi's <strong>posthttp/invokeHttp</strong> processor to post a PDF to an API.</p>
  
  <p>But considering the following cURL request to replicate in NiFi:</p>
  
  <pre><code>curl -X POST "http://ipaddress:port/api/" -H "accept: application/json" -H 
          "Content-Type: multipart/form-data" -F "pdf_file=@sample.pdf;
          type=application/pdf"
  </code></pre>
  
  <p>Which property takes the <code>-F</code> information in nifi attributes? </p>
  
  <p>Configuration for invokehttp right now:
  <a href="https://i.stack.imgur.com/NoiWl.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NoiWl.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/capSo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/capSo.jpg" alt="enter image description here"></a>
  error:
  "400 Bad Request: The browser (or proxy) sent a request that this server could not understand."</p>
  
  <p>Configration for posthttp right now:
  <a href="https://i.stack.imgur.com/siY9e.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/siY9e.jpg" alt="enter image description here"></a>
  error:
  server logs: readv() failed (104: Connection reset by peer) while reading upstream</p>