Once you have the stream you can always use java.io.* APIs to do whatever
you like. See the java.io.File class for possibilities.
Affan

----- Original Message -----
From: "Alen Ribic" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 1:15 PM
Subject: Prevent file overwriting for uploaded files in Struts


> Hi all
>
> What is the best way of prevent a file overwriting when uploading a file
in
> Struts?
> For example, if file "my_image.jpg" exists on the server I would like it
to
> save it as something like "my_image[1].jpg".
>
> Any ideas?
>
> Thanks
> --Alen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to