I have a Nifi flow where a document file eg/pdf, doc etc is sent from a REST API to a Nifi ListenHTTP processor. The processor is configured to accept all headers. Here is m