OK, I tried.
The file is well uploaded but the "description" parameter in still empty.
Hervé
----- Original Message -----
From: Brekke, Jeff <[EMAIL PROTECTED]>
To: 'Turbine' <[EMAIL PROTECTED]>
Sent: Friday, January 26, 2001 5:28 PM
Subject: RE: ParameterParser with multipart/form-data
> Ahh, you don't have to process the request at all, it is all done for you
> already when auto upload is true.
> Just get everything from the parameter parser immediately. You can start
> with:
>
> FileItem myItem = data.getParameters().getFileItem("local_file");
>
>
> > > >
> > > > Hi,
> > > >
> > > > I use the TDK1.1a9.
> > > > I use services.TurbineUploadService.automatic=true
> > > >
> > > > I want to upload a file using multipart/form-data method and
> > > > TurbineUploadService. It works fine.
> > > > But I also want to havea description of the file. I try to
> > > > have everything
> > > > in the same form but I can't retrieve the "description"
> > parameter with
> > > > data.getParameters().getString("description"). In fact it
> > is empty.
> > > >
> > > >
> > > >
> > > > This is my template :
> > > >
> > > > <FORM action="/action/UpLoadFile/" method="post"
> > > > enctype="multipart/form-data">
> > > > <table>
> > > > <tr>
> > > > <td>
> > > > Select a file
> > > > </td>
> > > > <td>
> > > > <input name="local_file" type="FILE" >
> > > > </td>
> > > > </tr>
> > > > <tr>
> > > > <td>
> > > > Description
> > > > </td>
> > > > <td>
> > > > <INPUT name="description" type="text" value="">
> > > > </td>
> > > > </tr>
> > > > </table>
> > > > <INPUT type="submit" value="Upload File with description">
> > > > </form>
> > > >
> > > >
> > > > Is it possible to retrieve parameters when using
> > multipart/form-data ?
> > > > If yes, how ?
> > > >
> > > > Thanks for your time.
> > > > Hervé
> > > >
> > > >
> > > >
> > > >
> > > > ------------------------------------------------------------
> > > > To subscribe: [EMAIL PROTECTED]
> > > > To unsubscribe: [EMAIL PROTECTED]
> > > > Search:
> <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> > > Problems?: [EMAIL PROTECTED]
> > >
> >
> >
> > -----------------------------------------------------------------------
> >
> > This message has been scanned for viruses with Trend Micro's Interscan
> VirusWall.
> >
> >
> > ------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> > Problems?: [EMAIL PROTECTED]
> >
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
>
> -----------------------------------------------------------------------
>
> This message has been scanned for viruses with Trend Micro's Interscan
VirusWall.
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]