I am using stfp sink and trying to name the remote file based on header. I am providing following property to name the file on remote

sftp.file-expression=payload.headers['id'] + payload.headers['file_name']

I also tried sftp.file-expression=headers['id'] + headers['file_name']

but these is not working and in remote the original filename is kept. Is this the right way to write SpEL expression. Also I don't get any error with this property except the prope

1 Answers

Artem Bilan On Best Solutions

Must be sftp.filename-expression:


          A SpEL expression to generate the remote file name. (Expression, default: <none>)