Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Camel File Endpoint - Getting the file name

Tags:

apache-camel

I have a camel route:

from("file:///u01/www/images/nonprofits-test?move=.done&preMove=.processing&filter=#nonpFileFilter&minDepth=2&recursive=true")

Later on in the route I need to access the origin file name. How do I get that information? All of the headers contain information in like ${file:name}, but not the actual file name.

Thanks in advance!

The base problem is that simple language is not being evaluated correctly in while running Camel with grails. This is being discussed further on the Camel user list.

like image 726
chrislovecnm Avatar asked Sep 19 '25 09:09

chrislovecnm


1 Answers

there is a header called "CamelFileName" that stores this

see camel-file2 headers section for more details...

like image 113
Ben ODay Avatar answered Sep 21 '25 12:09

Ben ODay