Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB0257A1B for ; Fri, 2 Sep 2011 22:56:47 +0000 (UTC) Received: (qmail 5472 invoked by uid 500); 2 Sep 2011 22:56:44 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 5363 invoked by uid 500); 2 Sep 2011 22:56:43 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 5354 invoked by uid 99); 2 Sep 2011 22:56:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 22:56:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ole.ersoy@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-iy0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 22:56:36 +0000 Received: by iabz25 with SMTP id z25so5035781iab.18 for ; Fri, 02 Sep 2011 15:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=IFhtB04K2BGcuKOr8Oat0rWI+mFP3gE0AgPbHCYcwTo=; b=NnvvmSsdW2eRnfcGYpYgZQoSRPoLVUTWg996fYp5rAFbFDZeO7RKZqzbXbxbWIFf2b RvGsANol4g3+S3ISeWHeR2HqQrRNtGs7GXeGe34eA9itu7BHJsxPhmYCYIEsdBn596SZ 45JhjmqBYUFsMXu4jf8tHjNGlA6AtviM6Z2aM= Received: by 10.43.52.202 with SMTP id vn10mr1381874icb.334.1315004176460; Fri, 02 Sep 2011 15:56:16 -0700 (PDT) Received: from ole.pyramidetechnologies.com (c-71-57-50-223.hsd1.il.comcast.net [71.57.50.223]) by mx.google.com with ESMTPS id k4sm720734ibg.5.2011.09.02.15.56.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Sep 2011 15:56:15 -0700 (PDT) Message-ID: <4E615F0D.40001@gmail.com> Date: Fri, 02 Sep 2011 17:56:13 -0500 From: Ole Ersoy User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Servlet 3.0 File Upload References: <4E615DB1.7000106@gmail.com> In-Reply-To: <4E615DB1.7000106@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Never mind...I see the example hard codes the name of the file. Sorry for the noise. On 09/02/2011 05:50 PM, Ole Ersoy wrote: > Hi, > > I have a working file upload servlet, with the exception that it calls > the uploaded file "samplefile" instead of using the name of the file. So > if I upload different files, they all overwrite each other. Any ideas on > how to fix this? I used this tutorial to get it working: > > http://www.servletworld.com/servlet-tutorials/servlet3/multipartconfig-file-upload-example.html > > > TIA, > - Ole --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org