<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question NiFi : invokehttp processor - multipart/form-data in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-invokehttp-processor-multipart-form-data/m-p/390825#M247351</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello, I m sending a http request to an API and facing some difficulties to configure the multipart specificities.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have to send 2 files as part of request. Is there any way to send 2 files ? Since there can be only one flow file that is possible&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="dcxa-lithium-display-inline-block "&gt;&lt;DIV class="lia-user-name lia-component-users-widget-profile-user-name"&gt;&lt;BR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&lt;/DIV&gt;&lt;DIV class="lia-user-name lia-component-users-widget-profile-user-name"&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-processor-InvokeHTTP-POST-with-MultipartFile/td-p/381112" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Apache NiFi processor 'InvokeHTTP' POST with MultipartFile formdata to remote API --&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="lia-user-name lia-component-users-widget-profile-user-name"&gt;&lt;SPAN&gt;This works fine when one file is being sent. Any help on sending 2 of them ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2024 04:25:40 GMT</pubDate>
    <dc:creator>SushmaNaya</dc:creator>
    <dc:date>2024-07-23T04:25:40Z</dc:date>
    <item>
      <title>NiFi : invokehttp processor - multipart/form-data</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-invokehttp-processor-multipart-form-data/m-p/390825#M247351</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I m sending a http request to an API and facing some difficulties to configure the multipart specificities.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have to send 2 files as part of request. Is there any way to send 2 files ? Since there can be only one flow file that is possible&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="dcxa-lithium-display-inline-block "&gt;&lt;DIV class="lia-user-name lia-component-users-widget-profile-user-name"&gt;&lt;BR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&lt;/DIV&gt;&lt;DIV class="lia-user-name lia-component-users-widget-profile-user-name"&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-processor-InvokeHTTP-POST-with-MultipartFile/td-p/381112" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Apache NiFi processor 'InvokeHTTP' POST with MultipartFile formdata to remote API --&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="lia-user-name lia-component-users-widget-profile-user-name"&gt;&lt;SPAN&gt;This works fine when one file is being sent. Any help on sending 2 of them ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 04:25:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-invokehttp-processor-multipart-form-data/m-p/390825#M247351</guid>
      <dc:creator>SushmaNaya</dc:creator>
      <dc:date>2024-07-23T04:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi : invokehttp processor - multipart/form-data</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-invokehttp-processor-multipart-form-data/m-p/390827#M247352</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SushmaNaya_0-1721708871914.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41223i3532025BB87EE9F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SushmaNaya_0-1721708871914.png" alt="SushmaNaya_0-1721708871914.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 04:28:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-invokehttp-processor-multipart-form-data/m-p/390827#M247352</guid>
      <dc:creator>SushmaNaya</dc:creator>
      <dc:date>2024-07-23T04:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi : invokehttp processor - multipart/form-data</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-invokehttp-processor-multipart-form-data/m-p/390844#M247355</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112548"&gt;@SushmaNaya&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I believe this was asked before &lt;A href="https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/386351#M246014" target="_self"&gt;here&lt;/A&gt; but I dont think there is&amp;nbsp; a way to do it in one shot. you probably have to do it in custom script like executeScript processor where you can have part of the data stored as an attributes (depending how big the part is ) and then the other part is your flowfile content or have both stored as attributes (not recommended). Once you get the flowfile the execute script will get the content of the flowfile and the other aprt form the attribute construct your multi part body and send it that way. By the way if you are using Nifi 2.0 you probably can utilize python extensions to create your own custom processor using pure python when you can use different packages to help you with that. You can find example here: &lt;A href="https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/386351#M246014" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/386351#M246014&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.w3schools.com/python/ref_requests_post.asp" target="_blank"&gt;https://www.w3schools.com/python/ref_requests_post.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 09:34:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-invokehttp-processor-multipart-form-data/m-p/390844#M247355</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-07-23T09:34:03Z</dc:date>
    </item>
  </channel>
</rss>

