shubhluck commented on code in PR #11495:
URL: https://github.com/apache/nifi/pull/11495#discussion_r3888036175


##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFile.java:
##########
@@ -304,7 +315,16 @@ public void onTrigger(final ProcessContext context, final 
ProcessSession session
                 }
             }
 
-            session.exportTo(flowFile, dotCopyFile, false);
+            final ResourceTransferSource resourceTransferSource = 
ResourceTransferSource.valueOf(
+                    context.getProperty(RESOURCE_TRANSFER_SOURCE).getValue());
+            final Optional<FileResource> fileResource = 
getFileResource(resourceTransferSource, context, flowFile.getAttributes());

Review Comment:
   Fixed as suggested switched to asAllowableValue



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to