[ https://issues.apache.org/jira/browse/NIFI-11758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743321#comment-17743321 ]
ASF subversion and git services commented on NIFI-11758: -------------------------------------------------------- Commit 2f9bb2095c18b8f1e84e3effcba7e60d93f63aa5 in nifi's branch refs/heads/support/nifi-1.x from Peter Turcsanyi [ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2f9bb2095c ] NIFI-11758: Added FileResourceService and used it in PutAzure*Storage processors for local file upload - Renamed classes from DataUpload to ResourceTransfer and updated references - Disabled testNonReadableFile() on Windows due to Posix permissions - Replaced utility methods with functional handling of FileResource - Corrected FlowFile InputStream access using Optional.orElseGet() Backported - Updated 2.0.0-SNAPSHOT references to 1.23.0-SNAPSHOT - Replaced InputStream.readAllBytes() with IOUtils.toByteArray(inputStream) to address Java8 incompatibility - Replaced Optional.isEmpty() with Optional.isPresent() to address Java8 incompatibility This closes: #7458 Co-authored-by: David Handermann <exceptionfact...@apache.org> Signed-off-by: Nandor Soma Abonyi <nsabo...@apache.org> (cherry picked from commit 437995b75a4237b7bf9d304f7693cf3b53371a9f) > Add local file upload option in PutAzure*Storage processors > ----------------------------------------------------------- > > Key: NIFI-11758 > URL: https://issues.apache.org/jira/browse/NIFI-11758 > Project: Apache NiFi > Issue Type: Improvement > Reporter: Peter Turcsanyi > Assignee: Peter Turcsanyi > Priority: Major > Time Spent: 2h 40m > Remaining Estimate: 0h > > There are cases when the files to be uploaded to Azure Storage are available > on the local filesystem where NiFi is running. That is, the flow could read > and upload the files directly from the filesystem without adding it in NiFi's > content repo which is an overhead in this case (can be relevant for huge > files). > Add "Data to Upload" property with options "FlowFile's Content" (default, > current behaviour) and "Local File". Using the latter, the user can by-pass > the content repo and upload the file from the local filesystem to Azure > Storage directly. -- This message was sent by Atlassian Jira (v8.20.10#820010)