Skip to main content
Nov 23, 2023 8:44 AM UTC

Rule SET for adding header not working in dynamic media

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 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
Nov 24, 2023 3:37 AM UTC

@allanjeffrey please give it a try like this. 

 

 

Translate
kautuk_sahni
Level 9
Dec 4, 2023 12:02 PM UTC

@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.

Translate
Kautuk Sahni
Dec 4, 2023 12:43 PM UTC

@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.

 

 

Translate