[ 
https://issues.apache.org/jira/browse/SLING-3829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320100#comment-14320100
 ] 

Antonio Sanso commented on SLING-3829:
--------------------------------------

[~olli] so I have tried the  UrlRewriteFilter and it basically works . Thanks.
One minus side on using it though is this.
I could easily set up to force content disposition attachment for a specific 
path e.g.

{code}
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE urlrewrite PUBLIC
"-//tuckey.org//DTD UrlRewrite 4.0//EN"
"http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd";><urlrewrite><rule><from>/usergenerated/*</from><set
type="response-header"
name="Content-Disposition">attachment</set></rule> </urlrewrite>
{code}

It would be harder though to exclude some mime type from the filter (e.g. 
image/jpeg). WDYT?

> Add support for Content-Disposition attachment 
> -----------------------------------------------
>
>                 Key: SLING-3829
>                 URL: https://issues.apache.org/jira/browse/SLING-3829
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Antonio Sanso
>            Assignee: Antonio Sanso
>            Priority: Minor
>
> In some situation will be useful (and safer) to force Content-Disposition 
> attachment for some Content-Type (configurable ) under some specific (and 
> sensitive) path (configurable)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to