Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 84236 invoked from network); 16 Nov 2006 13:31:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2006 13:31:32 -0000 Received: (qmail 5985 invoked by uid 500); 16 Nov 2006 13:31:36 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 5726 invoked by uid 500); 16 Nov 2006 13:31:35 -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 5715 invoked by uid 99); 16 Nov 2006 13:31:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 05:31:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [87.238.45.114] (HELO ox.linpro.no) (87.238.45.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 05:31:21 -0800 Received: from [127.0.0.1] (false.linpro.no [80.232.36.131]) by ox.linpro.no (Postfix) with ESMTP id D13BBA21 for ; Thu, 16 Nov 2006 14:32:00 +0100 (CET) Message-ID: <455C6814.60604@linpro.no> Date: Thu, 16 Nov 2006 14:31:00 +0100 From: Shervin Asgari User-Agent: Thunderbird 1.5.0.7 (X11/20060922) MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: How to retrieve the storeLocation References: <455C64B4.1010409@linpro.no> In-Reply-To: <455C64B4.1010409@linpro.no> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Nevermind. I figured it out. Shervin Shervin Asgari wrote: > Hello. I am using the user guide. When I print out the value of items > I get something like this: > > GetFieldName()file > GetName()anines_til_moteguide.csv > GetSize()17665 > isInMemory()false > itemname=anines_til_moteguide.csv, > StoreLocation=/opt/tomcat-5.5.16/temp/upload_4413ee_10ef0c9ae7b__7fff_00000002.tmp, > > size=17665bytes, isFormField=false, FieldName=file > > > There you can see StoreLocation. But this is in DiskFileItem class. > And I cant seem to get that from the FileItem, since DiskFileItem > implements FileItem. > Can someone help me get that method getStoreLocation() ? > > Here is the code from the user guide. > > FileItemFactory factory = new DiskFileItemFactory(); > > ServletFileUpload upload = new ServletFileUpload(factory); > > List /* FileItem */ items = upload.parseRequest(request); > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org