The May release of the com.oreilly.servlet MultipartRequest file upload tool added support for pluggable file renaming logic. Now there's an update that polishes that feature to provide the file name both before and after renaming. In this version getFilesystemName() returns the name as stored on the filesystem and there's a new method getOriginalName() to return the original file name. Enjoy! Get the software here.