Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 5168 invoked from network); 2 Jul 2003 05:35:21 -0000 Received: from bay8-f80.bay8.hotmail.com (HELO hotmail.com) (64.4.27.80) by daedalus.apache.org with SMTP; 2 Jul 2003 05:35:21 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 1 Jul 2003 22:35:32 -0700 Received: from 203.115.19.140 by by8fd.bay8.hotmail.msn.com with HTTP; Wed, 02 Jul 2003 05:35:32 GMT X-Originating-IP: [203.115.19.140] X-Originating-Email: [solution88pro@hotmail.com] From: "Senthoorkumaran Punniamoorthy" To: commons-user@jakarta.apache.org Bcc: Subject: Re: [fileupload] Problem with setting Repository Date: Wed, 02 Jul 2003 11:35:32 +0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 02 Jul 2003 05:35:32.0950 (UTC) FILETIME=[C1861F60:01C3405B] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Tom, Thank you very much for the help. Yes it works :-) regards Senthoor Senthoorkumaran Punniamoorthy TVisualBasic = Class(None) ICQ: 17258163 Home Page: www.xSolv.com Office e-mail: senthoor@mediasolv.com *************************************************************** Learn to IGNORE what you have to IGNORE, Which will save you from lot of problems. *************************************************************** >From: Tom Maccariella >Reply-To: "Jakarta Commons Users List" >To: Jakarta Commons Users List >Subject: Re: [fileupload] Problem with setting Repository >Date: Tue, 1 Jul 2003 21:23:18 -0700 (PDT) >MIME-Version: 1.0 >Received: from apache.org ([208.185.179.12]) by mc7-f22.law1.hotmail.com >with Microsoft SMTPSVC(5.0.2195.5600); Tue, 1 Jul 2003 21:23:22 -0700 >Received: (qmail 30992 invoked by uid 500); 2 Jul 2003 04:23:08 -0000 >Received: (qmail 30980 invoked from network); 2 Jul 2003 04:23:07 -0000 >Received: from web20508.mail.yahoo.com (216.136.226.143) by >daedalus.apache.org with SMTP; 2 Jul 2003 04:23:07 -0000 >Received: from [68.45.162.199] by web20508.mail.yahoo.com via HTTP; Tue, 01 >Jul 2003 21:23:18 PDT >X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP >Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm >Precedence: bulk >List-Unsubscribe: >List-Subscribe: >List-Help: >List-Post: >List-Id: "Jakarta Commons Users List" >Delivered-To: mailing list commons-user@jakarta.apache.org >Message-ID: <20030702042318.2963.qmail@web20508.mail.yahoo.com> >In-Reply-To: >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >Return-Path: >commons-user-return-4042-solution88pro=hotmail.com@jakarta.apache.org >X-OriginalArrivalTime: 02 Jul 2003 04:23:22.0943 (UTC) >FILETIME=[ACA37CF0:01C34051] > >You must specify an absolute path when using the setRepositoryPath() >method. Example: > > upload.setRepositoryPath("c:\\temp"); > - or - > upload.setRepositoryPath("/tmp"); > >Keep in mind that the repository path is used as a place to temporarily >store files that are larger than the configured size threshold. So, no >files will be permanently stored in the location you specify. As such, you >may want to simply point to a temporary directory on the server. > >But if you still prefer to use a folder inside your application's context >to store these temporary files, you can resolve the absolute path by using: > > upload.setRepositoryPath( context.getRealPath( "/repository" ) ); > >This should resolve to something like: > > c:\tomcat4.1\webapps\fileupload\repository > >Hope this helps, >Tom > >Senthoorkumaran Punniamoorthy wrote: >Hello, > >I am using Tomcat as my servlet engine. Inside "webapps" folder I am using >"fileupload" as context root for the file uploading application I am trying >to write. > >In the code > >upload.setRepositoryPath("/repository"); > >and I have created the "repository" folder inside as a subfolder inside my >context root "fileupload". But it throws an exception saying the folder not >found. Can someone help me with this? > >regards >Senthoor > >_________________________________________________________________ >STOP MORE SPAM with the new MSN 8 and get 2 months FREE* >http://join.msn.com/?page=features/junkmail > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > > > > >--------------------------------- >Do you Yahoo!? >SBC Yahoo! DSL - Now only $29.95 per month! _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail