A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
File Upload
ford Darcy Jr
Ranch Hand
Joined: Jan 26, 2005
Posts: 76
posted
May 26, 2005 12:17:00
0
Hi,
I am using multipartrequest for fileupload in
servlets
. I want to save the file with the new filename on the server. But its getting saved with the original filename. Is there anyway to save the file with a new filename ?
Thanks.
Akbar Basha R
Greenhorn
Joined: Mar 11, 2002
Posts: 23
posted
May 26, 2005 13:08:00
0
Upload the file with the original file name and then use the File Class and the renameTo method to change the file name to a new one.
I agree. Here's the link:
http://aspose.com/file-tools
subject: File Upload
Similar Threads
File field content
Export to excel question
Saving runtime Swing UI as image
saving an image
JfileChooser selecting existing file.......?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter