W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] Removing multiple attribute from <input type=file multiple> with selected files

From: Ojan Vafai <ojan@chromium.org>
Date: Mon, 14 Dec 2009 10:33:34 -0800
Message-ID: <78dc8440912141033r2be5eba2i8f25d93f0b596859@mail.gmail.com>
On Sun, Dec 13, 2009 at 7:47 AM, Jonas Sicking <jonas at sicking.cc> wrote:

> On Sun, Dec 13, 2009 at 5:36 AM, TAMURA, Kent <tkent at chromium.org> wrote:
> > What should happen to selected files in a case that a user selects
> multiple
> > files for <input type=file multiple> and then a script code removes the
> > multiple attribute from the input element?
> >  - nothing, no change to the selected files and they will be submitted,
> >  - cleared, or
> >  - a single file remains
>
> I ran into the same question when developing this for firefox. I don't
> really care what happens either way since I don't see a use case for
> removing the multiple attribute.
>
> What I ended up doing was to do your first option above.
>

This should be an invalid thing to do. Can we throw an exception in addition
to leaving the list of files untouched?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20091214/a349a7ce/attachment-0001.htm>
Received on Monday, 14 December 2009 10:33:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:54 UTC