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

contentType comparisons should be case-insensitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0 Final
    • None
    • None
    • Operating System: Windows XP
      Platform: PC

    • 31496

    Description

      In functions like FileUploadBase.isMultipartContent() the content type
      comparison should be case insensitive, ex.

      org.apache.commons.fileupload.FileUploadBase: line 121 -

      if (contentType.toLowerCase().startsWith(MULTIPART))

      to be able to handle html forms that uppercase some attribute/value pairs:

      <form method="POST" action="http://127.0.0.1" enctype="MULTIPART/FORM_DATA">

      I cant find an RFC that specifies case sensitivity for enctype or or otherwise
      but I've come accross web designers/tools that use uppercase.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ivo@benetech.org Ivo Pletikosic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: