Re: Download File Question for IE
Re: Download File Question for IE
- Subject: Re: Download File Question for IE
- From: Kieran Kelleher <email@hidden>
- Date: Mon, 3 Apr 2006 10:46:38 -0400
Hi James,
Try these changes:
// Set headers for browser to save instead of displaying
aResponse.setHeader( "application/octet-stream", "content-
type" );
// Set the default save as name and mark as an attachment
String contentDisposition = "attachment;filename=\"" +
downloadFilename() + "\"";
aResponse.setHeader( contentDisposition, "content-
disposition");
Also, IE 6 has trouble with https downloads. The fix for that, which
works in combination with "application/octet-stream" is here:
http://homepage.mac.com/kelleherk/iblog/C1216817469/E102943740/
index.html
HTH,
-Kieran
________________________________________________________________
Blog: http://webobjects.webhop.org/
Dev Config = OS X 10.4.5 i686-C.Duo / Java 1.4.2_09 / WO 5.3.1 & P.
Wonder / XCode v2.2.1 / MySQL 4.1.18-std / Connector-J 3.0.17
Deploy Config = OS X 10.3.9 Server G4-PPC / Java 1.4.2_09 / WO
5.2.3 / MySQL 4.0.26 / Connector-J 3.0.17
On Apr 3, 2006, at 10:07 AM, James Cicenia wrote:
I am thinking it has to do with how I am setting mimetypes, etc.???
Other sites seem to work properly.
Here is my simple piece of code:
response.setHeader("application/vnd.ms-excel", "Content-Type");
response.setHeader(theDocumentItem.projectDocumentObject
().documentObject().length()+"", "Content-Length");
response.setHeader("filename=\""+theDocumentItem.title()
+"\"","Content-Disposition");
response.setContent(theDocumentItem.projectDocumentObject
().documentObject());
any thoughts?
Thanks
James
On Apr 3, 2006, at 2:40 AM, Wolfram Stebel wrote:
Am 03.04.2006 4:38 Uhr schrieb "James Cicenia" unter
<email@hidden>:
Hello -
Anyone knows why IE brings up a viewer vs. the regular Microsoft
Application?
In other words instead of downloading the file and launching
EXCEL it
brings
up the EXCEL viewer instead.
- James Cicenia
As far as i know, this is handled via the awfull registry.
Check your "file types" and the association to applications.
HTH
Wolfram
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden