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 ?
Akbar Basha R
posted 11 years ago
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.