Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 83950 invoked from network); 13 Oct 2004 19:12:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Oct 2004 19:12:16 -0000 Received: (qmail 34566 invoked by uid 500); 13 Oct 2004 19:12:07 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 34454 invoked by uid 500); 13 Oct 2004 19:12:06 -0000 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" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 34441 invoked by uid 99); 13 Oct 2004 19:12:06 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of mfncooper@gmail.com designates 64.233.170.199 as permitted sender) Received: from [64.233.170.199] (HELO mproxy.gmail.com) (64.233.170.199) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 13 Oct 2004 12:12:05 -0700 Received: by mproxy.gmail.com with SMTP id 80so274681rnk for ; Wed, 13 Oct 2004 12:12:04 -0700 (PDT) Received: by 10.38.8.80 with SMTP id 80mr2050856rnh; Wed, 13 Oct 2004 12:12:04 -0700 (PDT) Received: by 10.38.179.21 with HTTP; Wed, 13 Oct 2004 12:12:04 -0700 (PDT) Message-ID: <16d6c62004101312125be749a8@mail.gmail.com> Date: Wed, 13 Oct 2004 12:12:04 -0700 From: Martin Cooper Reply-To: Martin Cooper To: Jakarta Commons Users List Subject: Re: How to know upload process is successful?? In-Reply-To: <20041013190548.59781.qmail@web90003.mail.scd.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <20041013190548.59781.qmail@web90003.mail.scd.yahoo.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Wed, 13 Oct 2004 12:05:48 -0700 (PDT), Joe Smith wrot= e: >=20 > When we use commons fileupload, how do we know if upload process is succe= ssful? The upload itself is successful as long as parseRequest() is successful, i.e. doesn't throw an exception. If write() throws an exception, it's most likely a problem with where you've told it to write to. -- Martin Cooper >=20 > In the following code, if it throws Exception, then it means upload proce= ss is unsuccessful. Is that the only way to check if upload is successful? >=20 > Fileitem item =3D =E2=80=A6; >=20 > item.write(uploadedFile); >=20 > Please advise. Thanks!! >=20 >=20 > --------------------------------- > Do you Yahoo!? > vote.yahoo.com - Register online to vote today! > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org