ok, i’m sure I can fumble through it,  now that you can full circle inside
a flow

On April 29, 2020 at 15:10:49, Mark Payne (marka...@hotmail.com) wrote:

I would assume that I just used curl to send some multipart/form data and
verified that it properly received the data. But I don’t remember
specifically.

On Apr 29, 2020, at 2:44 PM, Otto Fowler <ottobackwa...@gmail.com> wrote:

Mark do you remember what you did to verify
https://github.com/apache/nifi/pull/2991?  Or know of an article?

On April 29, 2020 at 13:40:17, Mark Payne (marka...@hotmail.com) wrote:

Thanks Otto, I think a blog would be hugely helpful. People ask a lot of
times how to do multipart/form uploads. Now we can do it, but people won’t
know until they see a blog telling them. And it means when someone asks we
can just hand them a link :)

-Mark

On Apr 29, 2020, at 1:27 PM, Otto Fowler <ottobackwa...@gmail.com> wrote:

Note, I did some revisions based on review, so it is slightly different
than the original submittal.  You’ll want to see it again.  Maybe I’ll
write up a blog if I find some time

On April 28, 2020 at 01:01:14, Otto Fowler (ottobackwa...@gmail.com) wrote:

Well it is in review right now, and there will be changes up coming.

On April 27, 2020 at 23:12:21, Luis Carmona (lcarm...@openpartner.cl) wrote:

Hi Otto,

Compiled your version, and It DID WORK !!.

How risky is to use this "version" in a production environment ?

Thanks a lot.

LC




On Mon, 2020-04-27 at 11:05 -0700, Otto Fowler wrote:
> No, Luis, if the PR is accepted and lands, it will be in the next
> released version of nifi after that.
> r/>> If you build nifi yourself, it will be availabllle when you build
> master after it lands. r/>> r/>> On April 27, 2020 at 13:56:36, Luis
Carmona (lcarmona@@@openpartner.cl)
> wrote:
> > Thank you all, r/>> > r/>> > Wesley and Etienne, is there any
documentation source aaabout how to r/>> > connect a script in javascript
to nifi reessources, InputStream, r/>> > OutputStream, Erros, and so on ??
r/>> > r/>> > r/>> > Otto, sure I can give it a try, I am desperate for
thisss solution.
> > What r/>> > you mention means I have to lookkk for a tutorial about
adding a
> > custom r/>> > processor right ??? rr/>&> > r/>> > r/>> > Thanks again,
r/>> > r/>> > LC r/>> > r/>> > r/>> > r/>> > r/>> > On Mon, 2020-04-27 at
14:52 -0300, Wesley C. Dias de Ollliveira
> > wrote: r/>> > > Owh!!! r/>> &>; > br/>> Great, Otto!! r/>> > >
br/>&ggt; GGood news!! r/>> > > br/>> Em seg., 27 de abbr. dee 2020 às
14:50, Ottto Fowler < r/>> > > ottobaackwa...@gmail.com> escreveu: r/>> > >
> Whaat good timing, I just did : br/>> >
> > https:://github.com/apache/nifi/pull/4234 r/>> > > > If you can build
and try that would be sweet! or maybe a
> > review! br/>> > br/>> > On April 27, 2020 at 13:45:42, Etienne
> > Jouvin ( < r/>> > > > lapinoujoujo...@gmail.com) wrote: r/>> > > > >
Hello. r/>> > > > > br/>> > > I did it with a prrrocessor
EExecuteGroovyScript. r/>> > > > > br/>&&ggt; > > The script body is
somethinng like : r/>> > &ggt;; > > br/>> > > import
> > org.apache.http.entiity.mime.MultipartEntityBuilder
> > > > > import org.apache.http.entity.ContentType br/>> > > > > br/>> > >
flowFFFileList = session.get(100) r/>> > > > >
if(!!!flowFileList.isEmpty()) { r/>> > > > > flowFFFileList.each { flowFile
-> br//>> > > def multipart r/>&> > &> > > String text =
flowFile.read().getText("UTF-8") br/>> > > > > br/>> > >
flowFFFile.write{streamIn, streamOut-> r/>> > > > > multipart D
MultipartEntityBuilder.create() r/>> > > &ggt; > //speciffy multipart
entries here r/>> > > > &ggt; .addTextBody(""object", text, r/>> > > > >
ContentType.APPLICATTION_JSON) r/>> > > > > .addBiinaryBody(""content", new
r/>> > > > > FFFile(flowFile.'document.content.path'), r/>> > > > >
ContentType.create(flowFFile.'document.mime.type'), r/>> &gtt; > > >
flowFFile.'document.name') r/>> > > &> > .build() r/>> > > > >
multipart.writeTo(streamOut) r/>> > > > > }}} r/>> > > > >; ///set the
`documentum.action.rest.content.type` attribute to br/>&> > > > > be used
as `Content-Type` in InvokeHTTP br/>> > > > >
flowFFile.'document.content.type' = br/>> > > > >
multipart.getContentType().getValue() br/>> > > > >
session.transfer(flowFFile, REL_SUCCESS) r/>> > > > > }}} r/>> > > &ggt; >
}} r/>> > > > > br/>> > > brr/>> > > Attributes are : < r/>> > > > &>
document.conntent.path : content path r/>> > > > &ggt; document.mime..type
: content mime type r/>> > > > &> document.name : binaire content name r/>>
> > > &ggt; br/>> >; > Output update attribute < r/>> >; > > >
docuument.content.type : multipart content type. r//>> > > > > br/>> > >
You need some extra librairries : r/>&gtt; > > > > httpcore-4.4.12.jar r/>>
> > > &ggt; httpmime-4.5.10.jar r/>> > > > > br/>> >; > This will build a
multipartt as the flowfile
> > content and you can r/>> > > > > ussse it for the call after. r/>> > >
> > br/>> &&ggt; > br/>> > > Etienne < r/>> > > >; &> br/>> > > br/>> > >
Le lun. 27 avr. 2020 à 19:21, Luis
> > Carmona < r/>> > > > > lcarmona@@@openpartner.cl> a écrit : r/>> > > >
&gtt; &> Hi everyone, r/>> > > > > > br/>> &> > > Hoping everybody is doing
ok, wherever you are,
> > need some help r/>> > > > > > plllease. r/>> > > > > > br/>> > > >
DDoes anyone has ssent a file and parameters to
> > a REST point r/>> > > > > > usinnng r/>> > > > > > Invokehhtp with
multipart/form--ddata as mime-type ? r/>> > > > > > br/>>; &> > > I can't
figure ouut how to include the -F
> > <parameter>, speaking r/>> > > >;; > > in terms r/>> > > > > > of curl
syntaaxx. r/>> > > > > > br/>> > > > I rreaally need thiis done throught
NIFIso any
> > help will be highly r/>> > > > > &gggt; apreciated. r/>> > > > > >
br/>> > &&ggt; > Thanks in advancee. r/>> > > > > > br/&&gtt;> > > > LC <
r/>> > > > > > brr/&ggt;> br/>> br/> < r/> <

Reply via email to