You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Antonio Sanso (JIRA)" <ji...@apache.org> on 2015/02/13 15:00:14 UTC
[jira] [Commented] (SLING-3829) Add support for Content-Disposition
attachment
[ 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)