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

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

From: Jonas Sicking <jonas@sicking.cc>
Date: Sun, 13 Dec 2009 07:47:22 -0800
Message-ID: <63df84f0912130747n298b81a1s39f1a54501760cdc@mail.gmail.com>
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.

/ Jonas
Received on Sunday, 13 December 2009 07:47:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC