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

[whatwg] File Upload controls

From: Malcolm Rowe <malcolm-what@farside.org.uk>
Date: Thu, 22 Jul 2004 08:45:49 +0100
Message-ID: <40FF70AD.2010303@farside.org.uk>
Hi Ian,

Two questions occurred to me while I was looking at the spec recently:

Firstly, if I want to allow a user to upload more than one file through 
file upload control, but I don't care how many (for example: as 
attachments to an email, which don't have any particular limit), how do 
I express this? Can I use 'max' to mean 'more than one, but not 
limited'? Do I need to pick a large arbitrary number - 'max="9999"'?

[incidentally, 'min' and 'max' are specified as "positive integers" for 
file upload controls. Is zero positive?]

Secondly, what is the interaction between 'min', 'max', and 'required' 
for file upload controls? Specifically, what does 'required' mean for a 
file upload control? Is it equivalent to 'min=1' or 'min=max', or 
something else? What happens if all three are specified?

At the moment, it's described in terms of the control 'having a value', 
but there's no definition as to what that means for a file upload 
control, and other text, for example "Any non-empty value satisfies the 
required condition, including a simple whitespace character.", clearly 
doesn't make sense for this control (since it cannot submit unless the 
file exists).

Regards,
Malcolm
Received on Thursday, 22 July 2004 00:45:49 UTC

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