12-14-2021 06:21 AM
Hi,
I am using Multi File reader snap but is not picking correctly filename if it has curly brackets.
filename is like: abcd{334-ffg-gg}.xml
How to handle these kind of schenarios.
12-14-2021 07:03 AM
If you are trying to get the name of the file in the child pipeline, you can pass the content-location
header. I don’t know where are you reading the file from, but if it’s SLDB, the header value should look like this:
And if you want to get the filename only, you can use this expression: $['content-location'].split("/")[$['content-location'].split("/").length - 1]
this will return the name of the file.
12-14-2021 07:06 AM
Did you check “content-disposition”. its coming wrong there.
12-14-2021 07:09 AM
Yes I did check it, it is coming like you said with "_"
instead of {}
That’s why I said you can use the content location to get the filename.
12-14-2021 07:13 AM
Hi,
In the child pipeline I have directory browser and after that I have a mpper to collect file size($[“Size (in bytes)”]), date($[“Update date”]), path ($Path)
and all are coming null.
12-14-2021 07:32 AM
And what is the search criteria in the directory browser ? What value do you pass in there ?