[ 
https://issues.apache.org/jira/browse/NIFI-7394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095699#comment-17095699
 ] 

ASF subversion and git services commented on NIFI-7394:
-------------------------------------------------------

Commit 659a3837235aab03538f30d88c7786e59dc654f2 in nifi's branch 
refs/heads/master from Otto Fowler
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=659a383 ]

NIFI-7394: Add support for sending Multipart/FORM data to InvokeHTTP.
By using dynamic properties with a prefix naming scheme, allow
definition of the parts, including the name to give the Flowfile content
part, and optionally it's file name.
After review:
- change so that we can send just the form content or just form data
  without the flowfile
- change the content name and content file name from dynamic properties
  to properties
- change the dynamic name to be an invalid http header "post:form:xxxx"
- add validation and more tests

This closes #4234.

Signed-off-by: Mark Payne <[email protected]>


> InvokeHTTP Processor multipart/form-data support
> ------------------------------------------------
>
>                 Key: NIFI-7394
>                 URL: https://issues.apache.org/jira/browse/NIFI-7394
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>    Affects Versions: 1.11.4
>         Environment: NiFi v1.10, v1.9.1 and v1.7
>            Reporter: Sudhanthiran B
>            Assignee: Otto Fowler
>            Priority: Major
>              Labels: InvokeHTTP, multipart/form-data, patch-available
>          Time Spent: 3.5h
>  Remaining Estimate: 0h
>
>     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:
> {code:java}
> -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
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to