FileUpload - item.getName() return value
Posted on 2006-05-30
I have this problem when gathering information for a file to be uploaded using FileUpload.
let's say the filename is: Abc.rtf
when I upload it using the commons FileUpload, the file was renamed to abc.rtf
I also noticed that in my code upon getting the filename by using item.getName(), it returns a the fullpath of the file which is all in lowercase.
Question is, How can I get the filename without the uppercase letters being converted to lowercase letters?