[whatwg] File Upload Control

Ian Hickson ian at hixie.ch
Thu Aug 26 06:22:47 PDT 2004


On Wed, 18 Aug 2004, Greg Kilwein wrote:
> 
> After reading this discussion on the Mozilla site about the file upload
> control, from what I've seen, the only purpose of accessing the ".value" of
> a file upload control is to know whether the user has entered a file name.

You could do this in a WF2 UA by checking if

   control.validity.isRequired

...was true or false (assuming you've set required="required").

-- 
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