Downloading files with IE on windows with SP2
Downloading files with IE on windows with SP2
- Subject: Downloading files with IE on windows with SP2
- From: Kaj Hejer <email@hidden>
- Date: Mon, 30 Aug 2004 19:18:25 +0200
Hi!
Several of our windowsuser have reported problems downloding files
from one of our WO applications after they upgraded to SP2.
Before uppgrading to SP2 downloding worked just fine on IE6 on
windows. It works just fine on any other combinations of platforms
and browsers.
After upgrading to SP2 the following is happening:
After the user click the link for donwloding the file IE gives the
user a warning that she is trying to download a file and that IE has
stopped this download.
It also comes an extra line in the top od the browserwindow where the
user can override the stopping of the download. When trying to
override to download the file nothing is happening.
has anybody else out these seen something like this?
We use the following code in the component that sends the file to the client.
public void appendToResponse(WOResponse response, WOContext context) {
if (getFilename() != null && getHtmlcode() != null) {
response.setHeader(
"application/octet-stream; name=\"" + getFilename() + "\"",
"content-type");
response.setHeader(
"attachment; filename=\"" + getFilename() + "\"",
"content-disposition");
response.setContent(getHtmlcode());
response.setHeader(Integer.toString(getHtmlcode().length()),
"content-length");
response.disableClientCaching();
response.removeHeadersForKey("Cache-Control");
response.removeHeadersForKey("pragma");
}
super.appendToResponse(response, context);
((Session) session()).setShouldDownloadFile(false);
((Session) session()).setDownloadContent(null);
((Session) session()).setDownloadFilename(null);
}
Config on server: WO5.2.2 and solaris.
TIA for any feedback on this issue!
-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.