Skip to content

Commit

Permalink
FTP/FTPS and SFTP Source Kamelet: Add an header containing the filena…
Browse files Browse the repository at this point in the history
…me named file and ce-file - FTP Kamelet
  • Loading branch information
oscerd authored and nicolaferraro committed Apr 9, 2021
1 parent 4b1ea3b commit e4f05f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ftp-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ spec:
recursive: "{{recursive}}"
idempotent: "{{idempotent}}"
steps:
- set-header:
name: file
simple: "${header[CamelFileName]}"
- set-header:
name: ce-file
simple: "${header[CamelFileName]}"
- convert-body-to:
type: "java.io.InputStream"
- to: "kamelet:sink"

0 comments on commit e4f05f3

Please sign in to comment.