Being a beginner with AWS and S3, i was trying to integrate to upload a Sample.txt file from my local sftp to s3 using apache camel
<route>
<from uri="sftp://testuser@localhost?password=test&delete=true" />
<setHeader name="CamelAwsS3Key">
<constant>test</constant>
</setHeader>
<to uri="aws-s3://myTestBucket?accessKey=******&secretKey=RAW(******)&deleteAfterWrite=false&region=AP_SOUTH_1" />
</route>
This works but the file always uploads with the name test and type is also not shown. Have tried multiple methods. Any suggestions would be helpful.