Hello,
You can use the File Expression Language [1] to obtain the name of the file and
set the appropriate S3 header
For example, if you wanted just the name of the file, you can do the following
from("file:///home/ram/sample/")
.setHeader(S3Constants.KEY, simple(“file:onlyname.noext"))
.to("
Hi,
This will write the file present in directory sample to checkoutputdir1
from("file:///home/ram/sample/")
.to("file:///home/ram/checkoutputdir1/");
My use case is to push to s3
from("file:///home/ram/sample/")
.setHeader(S3Constants.KEY, simple("check5"))
.to("aws-s3://camel-qq?accessKey=&secr