Hi,
 I have the same problem , that u have given.

This is how you can get the name of the file you uploaded:

**********************************

FileItem fileItem = data.getParameters().getFileItem("file");

if (fileItem != null)

{

String fileName = fileItem.getFileName();


StringTokenizer toker=new StringTokenizer(fileName, "\\");


while (toker.hasMoreTokens() )

{

fileName= toker.nextToken();

}

}

*********************************
fileName then holds the name of the file. You save the file in database
or
in your file system or ...


> Hi,
>
> I need to upload multiple images, files etc. From turbine application
I
can
> upload one file at a time and when I upload next time that file is
replaced.
>
> Is there a way wherein I can upload multiple fies at a time and at
the
same
> time save it with the same name as the uploaded ones. I just want
the
> uploaded files to be added to the earlier uploaded files.
>

Pls let me know the soln part..
Thanks and Regards
Sridhar

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

Reply via email to