Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 98983 invoked from network); 1 May 2003 14:59:09 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 1 May 2003 14:59:09 -0000 Received: (qmail 956 invoked by uid 97); 1 May 2003 15:01:09 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 949 invoked from network); 1 May 2003 15:01:09 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 1 May 2003 15:01:09 -0000 Received: (qmail 98176 invoked by uid 500); 1 May 2003 14:59:00 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 98165 invoked from network); 1 May 2003 14:59:00 -0000 Received: from f28.law8.hotmail.com (HELO hotmail.com) (216.33.241.28) by daedalus.apache.org with SMTP; 1 May 2003 14:59:00 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 May 2003 07:59:03 -0700 Received: from 209.167.133.22 by lw8fd.law8.hotmail.msn.com with HTTP; Thu, 01 May 2003 14:59:02 GMT X-Originating-IP: [209.167.133.22] X-Originating-Email: [t3szeto@hotmail.com] From: "Terrence Szeto" To: tomcat-dev@jakarta.apache.org Bcc: Subject: IE and URL rewrite causes files downloaded to lose extensions Date: Thu, 01 May 2003 10:59:02 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 May 2003 14:59:03.0048 (UTC) FILETIME=[344D2880:01C30FF2] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi everyone. I've done some testing, and I've noticed that IE has some difficulties dealing with URL rewriting with file downloads. I have setup, Tomcat 4.0.4, (tested also on Tomcat 4.1) and using IE 6. Tomcat has been setup to use URL rewriting (no cookies), and this is where the problem is. If my file is named "test.exe", the URL will look something like so. http://mydomain.com/test.exe;jsession=1209ad09823tasdlfkj or something like so correct? When IE attempts to download this file, the extension is somehow STRIPPED, leaving the file to be saved as "test". Is there ANY way around this? Well, to answer my own question yes, I've been adding an additional header and value: "Content-disposition: attachment; filename=newName.zzz" where newName.zzz is the file name derived from the URL. (I used a Filter to run through and do all of that). Now, an additional problem occurs. When downloading files with multiple '.' characters, IE pads on square brackets to the file name. If my file name is "test1.1.exe" IE handles this with the above implementation as: "test1[1].1.exe" Anyone have ideas on what this is? or if anyone has solutions to this? Thanks Sincerely, Terrence Szeto _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org