Rule SET for adding header not working in dynamic media | Community
Skip to main content
New Participant
November 23, 2023

Rule SET for adding header not working in dynamic media

  • November 23, 2023
  • 2 replies
  • 887 views

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.

2 replies

kautuk_sahni
Employee
December 4, 2023

@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
New Participant
December 4, 2023

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

 

 

Saravanan_Dharmaraj
New Participant
November 24, 2023

@allanjeffrey please give it a try like this.