Results 1 to 2 of 2

Thread: Uploaded file name changed to all lowercase

Hybrid View

  1. #1

    Default 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.

  2. #2
    Join Date
    Feb 2006
    Posts
    3

    Default

    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
  •