If you turn on auto uploading in TR.properties, when a parameter parser is
created, TurbineUploader.parseRequest is called automatically, the files are
uploaded and stored in the path ( or in memory ) also def'd in
TR.properties. The files are stored with temp names so they will not be
overwritten, You may then get access to the files through
ParameterParser.getFileItem(s). You do not need to define an action in this
case to call parseRequest ( as in the sample UploadFile.java ).
> -----Original Message-----
> From: Diethelm Guallar, Gonzalo [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 10, 2000 8:46 AM
> To: 'Turbine'
> Subject: RE: ActionEvent and a "multipart/form-data" form
>
>
> > > I have a "multipart/form-data" form used to upload a couple
> > > of files. This form also has several submit buttons, so
> > > using an ActionEvent seems natural here. However, the
> > > right eventSubmit_doXXX method is never called, since
> > > the button name is not seen until parseRequest() in
> > > the upload service has been called, and of course
> > > parseRequest() should be called from the doXXX method...
> >
> > If you use automatic uploading, the ParameterParser will
> > parse the request automatically for you. Then your
> > event methods will be called, and they will be able
> > to pick up FileItems and make some use of them.
>
> What do you mean by "automatic uploading"? All I did was
> to setup a form with a button. The action for this button
> was copied from samples/actions/UploadFile.java, and ends
> up calling TurbineUpload.parseRequest(). The problem is
> that if I switch to an ActionEvent (that is, several submit
> buttons on the page, each with a different intended action
> via a doXXX method), the mapping from button to action will
> be defined only AFTER parseRequest() is called, so it seems
> there is no way to call the appropriate doXXX method. Or am
> I missing the (your) point here?
>
> > Rafal
>
> Thanks,
>
>
> --
> Gonzalo A. Diethelm
> [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]