Re: POST multipart/form-data with Invokehttp

2020-04-29 Thread Otto Fowler
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

Re: POST multipart/form-data with Invokehttp

2020-04-29 Thread Mark Payne
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 mailto:ottobackwa...@gmail.com>> wrote: Mark do you remember what you did to verify

Re: POST multipart/form-data with Invokehttp

2020-04-29 Thread Otto Fowler
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.

Re: POST multipart/form-data with Invokehttp

2020-04-29 Thread Otto Fowler
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

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Otto Fowler
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,

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Luis Carmona
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

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Andy LoPresto
ExecuteProcess and ExecuteStreamCommand both allow shell commands to be run; ExecuteProcess does not allow incoming flowfiles but ExecuteStreamCommand does. Andy LoPresto alopre...@apache.org alopresto.apa...@gmail.com He/Him PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Luis Carmona
Hi Wesley, couldn't use Execute Processor as it doesn't receive an input FlowFile ( or I didn't find out how to connect it ) and I need to give to the procesor the file that should be sent. Thanks anyway. Will try with a script now. LC On Mon, 2020-04-27 at 14:26 -0300, Wesley C. Dias de

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Luis Carmona
OK Otto, got it. 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. > > If you build nifi yourself, it will be available when you build > master after it lands. > > On April

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Luis Carmona
Thank you all, Wesley and Etienne, is there any documentation source about how to connect a script in javascript to nifi resources, InputStream, OutputStream, Erros, and so on ? Otto, sure I can give it a try, I am desperate for this solution. What you mention means I have to look for a

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Otto Fowler
No, Luis, if the PR is accepted and lands, it will be in the next released version of nifi after that. If you build nifi yourself, it will be available when you build master after it lands. On April 27, 2020 at 13:56:36, Luis Carmona (lcarm...@openpartner.cl) wrote: Thank you all, Wesley and

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Wesley C. Dias de Oliveira
Owh! Great, Otto! Good news! Em seg., 27 de abr. de 2020 às 14:50, Otto Fowler escreveu: > What good timing, I just did : https://github.com/apache/nifi/pull/4234 > If you can build and try that would be sweet! or maybe a review! > > On April 27, 2020 at 13:45:42, Etienne Jouvin

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Otto Fowler
What good timing, I just did : https://github.com/apache/nifi/pull/4234 If you can build and try that would be sweet! or maybe a review! On April 27, 2020 at 13:45:42, Etienne Jouvin (lapinoujou...@gmail.com) wrote: Hello. I did it with a processor ExecuteGroovyScript. The script body is

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Luis Carmona
Hi Wesley, no, haven't used any processor related to do things out of NIFI itself. Will give it a try thanks. LC On Mon, 2020-04-27 at 14:26 -0300, Wesley C. Dias de Oliveira wrote: > Hello, Luis. > > Have you tried to send with ExecuteProcessor? > > > > Using that way you can invoke

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Etienne Jouvin
Hello. I did it with a processor ExecuteGroovyScript. The script body is something like : import org.apache.http.entity.mime.MultipartEntityBuilder import org.apache.http.entity.ContentType flowFileList = session.get(100) if(!flowFileList.isEmpty()) { flowFileList.each { flowFile -> def

POST multipart/form-data with Invokehttp

2020-04-27 Thread Luis Carmona
Hi everyone, Hoping everybody is doing ok, wherever you are, need some help please. Does anyone has sent a file and parameters to a REST point using Invokehhtp with multipart/form-data as mime-type ? I can't figure out how to include the -F , speaking in terms of curl syntax. I really need

Re: POST multipart/form-data with Invokehttp

2020-04-27 Thread Wesley C. Dias de Oliveira
Hello, Luis. Have you tried to send with ExecuteProcessor? [image: image.png] Using that way you can invoke curl explicit to run your command. Em seg., 27 de abr. de 2020 às 14:21, Luis Carmona escreveu: > Hi everyone, > > Hoping everybody is doing ok, wherever you are, need some help