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

Unit incompatibility betweenFileUpload.setFileSizeMax and FileUploadBase$FileItemIteratorImpl

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2.2
    • Labels:
      None

      Description

      FileUploadBase$FileItemIteratorImpl.FileItemStreamImpl
      If we have too big file (binary, for example) and FileSizeLimitExceededException will be thrown you're always creating message: "The field " + fieldName + " exceeds its maximum permitted " + " size of " + pSizeMax + " characters."
      Size limit is setting using bytes, in this message user will have an information about too many characters...
      Can you change message to use that same unit?

        Attachments

          Activity

            People

            • Assignee:
              jochen@apache.org Jochen Wiedmann
              Reporter:
              duzakropka Duzakropka
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: