โ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 ?