Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7394

InvokeHTTP Processor multipart/form-data support

    XMLWordPrintableJSON

Details

    • Important

    Description

          The InvokeHTTP processor does not support invoking a multipart/form-data. Unfortunately, I cannot share the URL or the data which I used but the general theme is an API that accepts a file through a document browser or an API that accepts input in form of custom forms.

          I am trying to post the form data via API. Like I did in this curl command. When I do the same via InvokeHTTP it fails.

      Curl method:

      -sSk;--request;POST;--header;Content-Type:multipart/form-data;--header;Authorization:${Authorization};--form;extension=${extension};--form;name=${name};--form;entityId=${entityId};--form;entityTypeId=1;--form;type=${type};--form;version=${version};--form;comment=Uploaded .;--form;financial=${modeType};--form;documentFileData=@/home/tomcat7/sample_path/${filename};${URL}/document/upload
      

       

      Attachments

        Issue Links

          Activity

            People

              otto Otto Fowler
              sudhanthiran Sudhanthiran B
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 50m
                  3h 50m