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