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>  
> 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
Received on Tuesday, 3 November 2009 15:43:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:26 UTC