Question
How to handle a json body and file in the same request in NiFi
Hello I need help how to make a flow which can handle 2 pieces of data from user. Let us consider a scenario-> User submits a form having some fields like name, age, address and also a file having something say a list of his hobbies(just for example). How do we process these together and return a response back?
I have my flow like this HandleHttpRequest->ExecuteScript (Groovy)-> HandleHttpResponse
I am able to do one logic only that either handle the json body say {"name":"Test Name","age":"25","address":"Test address"} or the file which gets sent.
How to process both inside my Groovy Script?

