• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with dynamic downloads on IE on windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with dynamic downloads on IE on windows


  • Subject: Re: Problem with dynamic downloads on IE on windows
  • From: Kaj Hejer <email@hidden>
  • Date: Wed, 8 Sep 2004 23:18:40 +0200

At 13:51 -0700 08-09-04, Cliff Tuel wrote:
 > Some files are no longer downloadable, an error occurs in the Browser.

What's the error?

The problem affects .zip, .exe and .doc formats,

Are you setting the Content-Type appropriately? As of XP SP2, the type must match the filename suffix, or IE will show a security warning. See here:

<http://msdn.microsoft.com/library/en-us/dnwxp/html/xpsp2web.asp>

And...
<http://www.winxptutor.com/sp2/infobardl.htm>



Hi!

Thanks for posting this answer!

We too have problems with filedownloads from pcs with SP2 installed. Even if we try to override the securiywarning nothing happens.

We use "content-disposition=attachment" as described at http://msdn.microsoft.com/library/en-us/dnwxp/html/xpsp2web.asp>

Here is a description of our problem:

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 of 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); } _______________________________________________ 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.


References: 
 >Re: Problem with dynamic downloads on IE on windows (From: Cliff Tuel <email@hidden>)

  • Prev by Date: Scheduled downtime for webobjects-dev on lists.apple.com
  • Next by Date: D2WList behaviour in custom page
  • Previous by thread: Re: Problem with dynamic downloads on IE on windows
  • Next by thread: Scheduled downtime for webobjects-dev on lists.apple.com
  • Index(es):
    • Date
    • Thread