A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Unique File Name when uploading using FormFile
Joined: Oct 09, 2007
Oct 25, 2007 06:06:00
I m uploading a file using with FormFile (Struts).
What is the best way to save it with unique name for each file (so it won't overwrite exiting ones)?
Joined: Aug 10, 2006
Oct 25, 2007 07:26:00
I prefer to save then as BLOBs in a database. However, if you're going to store them on the file system I'd use a timestamp.
I agree. Here's the link:
subject: Unique File Name when uploading using FormFile
Uploading Multiple Files Using html:file
Upload all the files in the directory to server
file miss match error in struts 1
How to convert FormFile into BLOB object?
Hiding the full path of the file While Uploading in struts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014