Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-30

[fileupload] filename drops case

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1 Final
    • Fix Version/s: 1.2
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Bugzilla Id:
      38490

      Description

      When I'm iterating over a set of FileItems, the getName method returns the
      source filename in all lowercase.

      I did a little inner-class extension of the ServletFileUpload class as follows :

      FileUpload fu = new ServletFileUpload(factory) {
      protected java.lang.String getFileName(java.util.Map headers)

      { String fn = super.getFileName(headers); log(fn + " :: " + headers.toString()); return fn; }

      };

      in my tomcat (5.5) log, I get entries like this :

      c:\program files\samples\scrolling.fla] ::

      {content-length=36864, content-disposition=form-data; name="userfile[21]"; filename="C:\Program Files\Samples\Scrolling.fla", content-type=application/octet-stream}

      so it appears as if the filename in the headers is correctly case sensitive, but
      the getFileName method is returning the filename in all lowercase... ?

      thanks in advance, and if there is anything else I can provide, please let me know.

      -daniel

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dwood@digitaljiggery.com Daniel Wood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: