Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.2
-
None
-
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!