Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Struts
Unique File Name when uploading using FormFile
ods gel
Greenhorn
Posts: 8
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
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)?
Chris Boldon
Ranch Hand
Posts: 190
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Upload all the files in the directory to server
How to convert FormFile into BLOB object?
Hiding the full path of the file While Uploading in struts
file miss match error in struts 1
Uploading Multiple Files Using html:file
More...