Have you looked at this:

http://jakarta.apache.org/turbine/turbine-2.2.0/services/upload-service.html

The Turbine 2.1 upload service contained a bug whereby the file item was
written with zero bytes.  There is a patch somewhere in the mail archive for
this.  You might also be able to find the change in cvs.

The problem is fixed in Turbine 2.2.

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com


On 11/02/2003 3:33 AM, "George Allaman" <[EMAIL PROTECTED]> wrote:

> I am unable to get the file upload service to work using Turbine 2.1 on W2K,
> either in newapp or my application. Is this a known problem (in which case I'm
> probably doing nothing wrong) or not (in which case I am doing something
> wrong)? My FileItem object is always null.
> 
> I've spent hours browsing the email list about this, and some people are not
> able to get it to work at all while others seem to be able to. I'm using the
> code from newapp in my app:
> 
>    public void doUpload(RunData data, Context context)
>        throws Exception
>    {
>        FileItem fileItem = data.getParameters().getFileItem("file");
>        fileItem.write(TurbineServlet.getRealPath("/uploaded.file"));
>    }
> 
> I'm not sure where the uploaded file is supposed to end up, but I've searched
> my entire hard drive for it to no avail. Has anyone had this problem and
> solved it?
> 
> Thanks in advance.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to