Hi

Some time ago I overheard a question for "Content-Disposition" support in the 
StreamRendererServlet.

I wonder, whether we should extend that servlet with a request selector to use 
a disposition.

WDYT ? Would that help ? In this case, I suggest you report a JIRA issue. 
Thanks.

Regards
Felix


Am 12.08.2013 um 11:33 schrieb anjan:

> Sling is using DefaultGetServlet which uses StreamRendererServlet to stream
> the resources.  When I try to retrieve the document from the embedded
> repository, this servlet will render the response.  The servlet sets various
> headers like content type, encoding...etc.  Depending on the header the
> browser will either show the contents or prompt the user for the file
> download.  We can force the browser to always prompt for the file download,
> if we add "Content-Disposition" header.
> 
> Is it possible to add this header to the above servlet?  If not, what is the
> alternative solution?  Please advice.
> 
> 
> 
> --
> View this message in context: 
> http://apache-sling.73963.n3.nabble.com/Download-the-document-tp4026064.html
> Sent from the Sling - Users mailing list archive at Nabble.com.

Reply via email to