W3C home > Mailing lists > Public > public-html-comments@w3.org > November 2009

Re: Value of <input type=file multiple> should list all files

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 03 Nov 2009 07:42:43 -0800
To: "Geoff Lankow" <geoff@darktrojan.net>, public-html-comments@w3.org
Message-ID: <op.u2tslhkm64w2qv@anne-van-kesterens-macbook.local>
On Sun, 01 Nov 2009 15:33:15 -0800, Geoff Lankow <geoff@darktrojan.net>  
wrote:
> the filename of the first file in the list of selected files  
> <http://www.w3.org/TR/html5/forms.html#concept-input-type-file-selected>,  
> if any, or the empty string if the list is empty. On setting, it must  
> throw an |INVALID_ACCESS_ERR  
> <http://www.w3.org/TR/html5/infrastructure.html#invalid_access_err>|  
> exception.
>
> Why only the first file in the list? It can't be for  
> backwards-compatibility, as the multiple attribute never existed before  
> this spec. Doesn't it make sense to list all the files?

You can get the file names through <input>.files. Making <input>.value  
more complex as well did not seem worth it.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 3 November 2009 15:43:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:01 GMT