I have a document repository portlet that uploads files and it works just fine. AFAIK, 
there is nothing wrong with the ParameterParser class.  I have included my TR.props 
below for reference.

Some pointers:
 
Make sure the directory nominated by "services.UploadService.repository" has been 
created within your application otherwise the UploadService will fail and the 
exception is annoyingly consumed by the Turbine servlet.  The exception doesn't even 
appear to get logged.  

The upload repository is where the upload service buffers files whose size is greater 
than the value specified in "services.UploadService.size.threshold".  This keeps jvm 
memory from blowing up when large files are uploaded.  My document repository portlet 
has successfully handled an 83 meg .pdf with no problem.  For this, I had to set the 
"services.UploadService.size.max" value to 100 meg just to be safe.  Here again, if 
the file exceeds this value, the exception is consumed by the Turbine servlet, leaving 
you completely ignorant as to what has happened.

Make sure the UploadService is not commented out in the TR.props file.

# -------------------------------------------------------------------
#
#  U P L O A D  S E R V I C E
#
# -------------------------------------------------------------------

# Whether the files should be automatically picked up by
# ParameterParser.

services.UploadService.automatic=true

#
# The directory where files will be temporarily stored.
#
services.UploadService.repository=./WEB-INF/tmp/upload

#
# The maximum size of a request that will be processed.
#
services.UploadService.size.max=104857600

#
# The maximum size of a request that will have it's elements cached in
# memory by TurbineUploadService class.
#
services.UploadService.size.threshold=10240




Scott

> -----Original Message-----
> From: Paul Spencer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 9:29 AM
> To: Jetspeed Users List
> Subject: Re: Unable to use multipart/mixed
> 
> I do not know if Turbine has assigned a bug number to this problem.  I
> have not looked.
> 
> Paul Spencer.
> 
> Jean-Christophe Kermagoret wrote:
> 
> > Yes, I think this too.
> > Do you know if it is an assigned bug ?
> >
> > Jean-Christophe
> >
> > Paul Spencer wrote:
> >
> >> This is a Turbine problem.  In short Turbine is discarding the file.
> >> I believe this is done in the their ParameterParser.
> >>
> >> Paul Spencer
> >>
> >> Jean-Christophe Kermagoret wrote:
> >>
> >>> Hello,
> >>> I can't get file through a multipart/mixed form. The rundata object
> >>> contains fields but not files.
> >>> If I use a multipart/form-data, I have nothing at all.
> >>>
> >>> In the TR.properties, everything seems OK.
> >>>
> >>> Any idea ?
> >>>
> >>> Thank you
> >>>
> >>>
> >>> --
> >>> To unsubscribe, e-mail:
> >>> <mailto:[EMAIL PROTECTED]>
> >>> For additional commands, e-mail:
> >>> <mailto:[EMAIL PROTECTED]>
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> To unsubscribe, e-mail:
> >> <mailto:[EMAIL PROTECTED]>
> >> For additional commands, e-mail:
> >> <mailto:[EMAIL PROTECTED]>
> >>
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:jetspeed-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:jetspeed-user-
> [EMAIL PROTECTED]>

Reply via email to