Forum Discussion
Rudhiran
2 years agoNew Contributor
HI tlikarish Above code isn't working for me. I tried to send .xlxs and .csv file but in mapper snap $['content-disposition'].match('filename=\"(.*)\"')[1] getting error that content-disposition not found
Appreciate your help on this issue
Anyone who know the solution can help us - appreciate your help
Thanks
- tlikarish2 years agoEmployee
Hi Rudhiran -- the double quotes were escaped in my example. Not sure where those came from, but could you try this expression, with backslashes removed, in your mapper and see if it will work for you?
$['content-disposition'].match('filename="(.*)"')[1]
- Rudhiran2 years agoNew Contributor
HI tlikarish ,
Multipart reader gives response only Content type and Content - Not the content-disposition
So we're getting error in mapper that
Cannot invoke a method on a null valueResolution:Please check expression syntaxReason:Value referenced in the sub-expression '$.get('content-disposition').match('filename="(.*)"')' is nullAppreciate your help on this issue