-
Mar 23rd, 2006, 09:28 AM
#1
Uploaded file name changed to all lowercase
I am using CommonsMultipartResolver and CommonsMultipartFile to upload files.
.....
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.C ommonsMultipartResolver"/>
....
....
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
CommonsMultipartFile file = (CommonsMultipartFile) multipartRequest.getFile("file");
...
However, the filenames of all uploaded files (obtained via file.getOriginalFilename()) are changed to lower case (for example: ABc.doc is changed to abc.doc). Is there any way to keep them as they were?
Thanks!
Last edited by pjydc; Mar 23rd, 2006 at 09:38 AM.
-
Jul 26th, 2006, 06:40 AM
#2
It is a bug in commons-fileupload 1.1. Upgrade to 1.1.1 (release date: 06/08/2006) that you should have no more problem regarding that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules