[whatwg] [wf2] maxlength attribute on file causes problems

Ian Hickson ian at hixie.ch
Thu Dec 15 14:48:50 PST 2005


On Thu, 15 Dec 2005, Hallvord R M Steen wrote:
>
> Some websites use "maxlength" attributes on file inputs. Of the more 
> important ones, GMX.de's webmail AFAIK uses a maxlength=255 for their 
> attachment form. Obviously when a WF2-compliant browser interprets this 
> as a file size limit you can't attach much..

We had this problem with a <textarea> element too, but the site got fixed.

Have you tried contacting the sites in question?


> Would it be a good idea to invent a new attribute, "maxbytes" or 
> "filesize" perhaps, to be more compatible with existing content?

I'd just drop the feature altogether if we did that, or use min/max 
instead, but yeah, might be worth considering.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list