Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-432

maxlength attribute of inputFileUpload now sets both the input field size and the file size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.2
    • None
    • File Upload
    • None

    Description

      The maxlength attribute of the inputFileUpload tag is supposed to set the maximum number of characters you can enter in the text input part of the file input. This is documented in the tag library javadoc and was the behaviour in MyFaces 1.1.1 (it is also the intuitive behaviour, since maxlength is used for this in the HTML file input tag).

      As of Tomahawk 1.1.2, the component refuses to upload files with a size IN BYTES greater than the size of the maxlength attribute, giving the message from org.apache.myfaces.FileUpload.SIZE_LIMIT

      It is not appropriate to overload the maxlength attribute to set both the width of the input field and the size of the file - please regress to the behaviour in 1.1.1!

      Attachments

        Activity

          People

            matzew Matthias Wessendorf
            jon_harley Jon Harley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: