Hi there,
I'm trying to fix some issue and I'd like to understand why we have
the following in DownloadAction:
String ofilename = XWiki.getURLEncoded(attachment.getFilename
()).replaceAll("\\+", " ");
response.addHeader("Content-disposition", "inline; filename=
\"" + ofilename + "\"");
response.setDateHeader("Last-Modified", attachment.getDate
().getTime());
To my knowledge, "inline" means that we're giving an indication to
the browser so that it does NOT to bring up a "Save As..." dialog box.
However my understanding is that when the user uses the /download/
action the attachment is bringing up a Save dialog box.
So 2 questions:
1) Why do we use inline?
2) Why is it working? :)
Thanks
-Vincent
___________________________________________________________________________
Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface
r�volutionnaire.
http://fr.mail.yahoo.com