Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 39871 invoked from network); 21 Jan 2006 00:56:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jan 2006 00:56:04 -0000 Received: (qmail 93267 invoked by uid 500); 21 Jan 2006 00:55:59 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 93252 invoked by uid 500); 21 Jan 2006 00:55:58 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 93241 invoked by uid 99); 21 Jan 2006 00:55:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2006 16:55:58 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.252.23.69] (HELO smtp14.wanadoo.fr) (193.252.23.69) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2006 16:55:57 -0800 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1409.wanadoo.fr (SMTP Server) with ESMTP id 25E2A700009D for ; Sat, 21 Jan 2006 01:55:36 +0100 (CET) Received: from [192.168.1.10] (ANantes-251-1-46-116.w81-250.abo.wanadoo.fr [81.250.237.116]) by mwinf1409.wanadoo.fr (SMTP Server) with ESMTP id 0B88A7000094 for ; Sat, 21 Jan 2006 01:55:36 +0100 (CET) X-ME-UUID: 20060121005536473.0B88A7000094@mwinf1409.wanadoo.fr Message-ID: <43D18684.8030400@wanadoo.fr> Date: Sat, 21 Jan 2006 01:55:32 +0100 From: Xav User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: commons-user@jakarta.apache.org Subject: IE vs Firefox Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Good Morning, It looks like the fileupload classes parse (or maybe should) the request a little bit differently depending if IE or Firefox is used. I use the following code: List /* FileItem */items = upload.parseRequest( request ) ; Iterator iter = items.iterator() ; *while* ( iter.hasNext() ) { FileItem item = (FileItem) iter.next() ; ... } When the item object is a file the method item.getName() returns just the file's name (ex: fooBar.gif) whereas with IE it returns the full path of where the file was on the client side (ex: c:\foo\bar\fooBar.gif). That might be an IE bug but do you think that the fileupload component should be changed so that the method getName() always returns the same information regardless of the browser used? Thanks Xavier --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org