You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Jon Stevens <jo...@latchkey.com> on 2001/04/10 19:58:08 UTC
Re: cvs commit:
jakarta-turbine/src/java/org/apache/turbine/services/upload
TurbineUploadService.java
on 4/10/01 10:41 AM, "legassick@apache.org" <le...@apache.org> wrote:
> FileItem item = createItem(path, requestSize);
> - multi.readBodyData(item.getOutputStream());
> + OutputStream os = item.getOutputStream();
> + multi.readBodyData(os);
> + os.close();
Please put that into a try/finally block.
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org