How to get filename from file reader
I need to get the name of the file read by the file reader snap and use it as part of the data downstream. Really the goal to save the file name as part of the data pulled from a file. Screen snippet attached here. I have spent some time looking into this but there is no obvious method to me. Please I will appreciate any input and recommendations. Thanks.
omiaye - The output of the directory browser does have the file name, screenshot below for references:
If you're using a file reader and have multiple files, use snaps like copy/router/binary router (depending on your use case) and use the field "content-location" to get the desired file. Below screenshot for references again.
If you're stuck and need help, please don't hesitate to reach out.Thanks.
Regards,
Darsh