commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Cooper <mfncoo...@gmail.com>
Subject Re: How to know upload process is successful??
Date Wed, 13 Oct 2004 19:12:04 GMT
On Wed, 13 Oct 2004 12:05:48 -0700 (PDT), Joe Smith <apngss@yahoo.com> wrote:
> 
> When we use commons fileupload, how do we know if upload process is successful?

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


> 
> In the following code, if it throws Exception, then it means upload process is unsuccessful.
Is that the only way to check if upload is successful?
> 
> Fileitem item = …;
> 
> item.write(uploadedFile);
> 
> Please advise. Thanks!!
> 
> 
> ---------------------------------
> 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


Mime
View raw message