Expand my Community achievements bar.

Rule SET for adding header not working in dynamic media

Avatar

Level 1

Hi,

 

Am trying to add content disposition inline header with file name to the dynamic media url so that when the file download it will be saved in the filename provided .But seems its not working with the below rule set. please let me know how we can fix this.

 

<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE ruleset SYSTEM "RuleSet.dtd">
 
<ruleset>
 
<rule OnMatch="continue" Name="Test">       
 
<expression>\$filename=</expression>
       
<header Name="Content-Disposition">inline;filename=\$filename\$</header>
 
    </rule>
 
</ruleset>
Passing filename parameter 
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Administrator

@allanjeffrey Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni

Avatar

Level 1

@kautuk_sahni @Saravanan_Dharmaraj In place of attachment in the query we need to pass the filename of the asset. let me know whether we can achieve that.