myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Harley (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (TOMAHAWK-432) maxlength attribute of inputFileUpload now sets both the input field size and the file size
Date Fri, 12 May 2006 15:44:08 GMT
maxlength attribute of inputFileUpload now sets both the input field size and the file size
-------------------------------------------------------------------------------------------

         Key: TOMAHAWK-432
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-432
     Project: MyFaces Tomahawk
        Type: Bug

  Components: File Upload  
    Versions: 1.1.2    
    Reporter: Jon Harley


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!


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message