Background
I have a workflow that uses a FetchFile
processor, some intermediary processors (e.g. RouteOnAttribute
, HashContent
, etc.), and then a PutFile
processor.
Throughout it all, the content is not being manipulated.
Issue/Problem
The PutFile
processor is saving files using a timestamp, NOT the original filename.
Question
How can I either:
PutFile
processor to use the original filename? or PutFile
processor will use?The PutFile
processor will save the content in a file with the filename based on the filename
attribute on the flowfile. You can use an UpdateAttribute
processor to provide whatever value you like for this attribute.
GetFile
will read the original filename of the file on disk into this attribute, but because FetchFile
expects the filename as an incoming attribute on the flowfile, it does not write the value back as an attribute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With