W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] File Upload Control

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 26 Aug 2004 13:22:47 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408261321270.21191@dhalsim.dreamhost.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 26 August 2004 06:22:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC