Shubham Sharma created NIFI-16159:
-------------------------------------

             Summary: Add support for FileResourceService in PutFile
                 Key: NIFI-16159
                 URL: https://issues.apache.org/jira/browse/NIFI-16159
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Shubham Sharma


{{PutS3Object}} (NIFI-12642), {{PutGCSObject}} (NIFI-12643), and {{PutHDFS}} 
(NIFI-12801) already let users pick the transfer source — either the incoming 
FlowFile's content or a local file resolved through a {{FileResourceService}} — 
via the standard {{Resource Transfer Source}} / {{File Resource Service}} 
properties.

{{PutFile}} still writes only the FlowFile content. Users who want to stage a 
local file to a directory on disk have to first pull it into a FlowFile with 
{{FetchFile}} / {{{}GetFile{}}}, which is wasteful when the source is already a 
path on the local filesystem (or reachable via a custom {{FileResourceService}} 
implementation).

This ticket adds the same two properties to {{PutFile}} so it can:
 * read from the incoming FlowFile content (existing default behavior — 
unchanged), or
 * read from a {{FileResourceService}} (new), streaming the resource straight 
to the destination directory.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to