I do this in Camel 2.7.1 and it definitely changes the name of the file before ftp:ing:
*theExchange.getIn().setHeader(Exchange.FILE_NAME, "newfilename");* Hope that helps, /Bengt 2012/5/10 qwerty5000 <yuki.tan...@barclays.com> > Thanks guys, but the solution you suggested would rename the files after > the > ftp step so doesn't work. > > Anyway to retain the original file name? This is necessary as I need to > perform some local processing after the file has been ftpd, and I need to > use the file name as some sort of an uid. > > -- > View this message in context: > http://camel.465427.n5.nabble.com/how-to-specify-remote-file-name-when-using-FTP-endpoint-tp5697227p5699472.html > Sent from the Camel - Users mailing list archive at Nabble.com. >