Sharath,

regarding the HTML 3.2 note, I found it inside a popular German HTML online book
(de.selfhtml.org)

Also I found this two guys [1] and [2]

-Matthias

[1] 
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp
[2] 
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_text.asp

On 5/22/06, sharath reddy <[EMAIL PROTECTED]> wrote:
Hi Jon,

I don't have an opinion either way, but take a look at
RFC 1867 - Form-based File Upload in HTML at
http://rfc.net/rfc1867.html:

If the INPUT tag includes the attribute MAXLENGTH, the
user agent should consider its value to represent the
maximum Content-Length which the server will accept
for transferred files.  In this way, servers can hint
to the client how much space they have available for a
file upload, before that upload takes place. It is
important to note, however, that this is only a hint,
and the actual requirements of the server may change
between form creation and file submission.




--- "Jon Harley (JIRA)" <[email protected]>
wrote:

>     [
>
http://issues.apache.org/jira/browse/TOMAHAWK-432?page=comments#action_12412750
> ]
>
> Jon Harley commented on TOMAHAWK-432:
> -------------------------------------
>
> maxlength is a valid attribute of input for all
> versions of HTML including XHTML. There is NO
> version of HTML in which it means limit max file
> size, so adding this behaviour to inputFileUpload is
> inherently confusing.
>
> I agree that configuration of file size should be
> defined globally, which was the only way in MyFaces
> 1.1.1. Unfortunately the new behaviour of maxlength
> OVERRIDES the global configuration. This caused all
> my file inputs to break when I upgraded, and the
> same will happen for everyone else who has used
> maxlength on file inputs before upgrading to
> Tomahawk 1.1.2.
>
> But if you don't care about introducing confusing
> attribute names and breaking people's applications,
> by all means leave this bug unfixed.
>
> > 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
> >     Assignee: Matthias We�endorf
>
> >
> > 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
>
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Reply via email to