On 19-Apr-09, at 1:18 AM, Lukas Renggli wrote:
3. The response. In the case Seaside is serving we can
set
Content-Disposition in the response. Setting it means that browsers
downloads the file, even if it could be displayed in the browser
window.
Ah, I thought I mentioned if you stick "inline" in
WAReponse>>attachmentWithFileName: aString
self headerAt: 'Content-Disposition' put: 'inline; attachment;
filename="', aString, '"'
see
http://www.ietf.org/rfc/rfc2183.txt
Then Safari is happy to show PDF files in the browser, versus
downloading
--
=
=
=
========================================================================
John M. McIntosh <johnmci(a)smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.
http://www.smalltalkconsulting.com
=
=
=
========================================================================