W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2010

[whatwg] input type=upload (not just files) proposal

From: Eitan Adler <lists@eitanadler.com>
Date: Tue, 8 Jun 2010 19:10:15 +0300
Message-ID: <AANLkTinWDHLGeMb8-CU2MSIhY4Se69f94wsndR-NhzUA@mail.gmail.com>
> My understanding of the proposal is that given this particular control, the
> browser would provide an interface for either selecting a local file or
> entering a URL. ?If a file is selected, the file is uploaded as normal,
> equivalent to <input type="file" name="foo">.
> Otherwise, if a URL is entered, the field is instead submitted as text,
> equivalent to <input type="url" name="foo">.
> The server would then determine whether the "foo" field that was submitted
> was a file upload or a text field value, and if it were a text field, then
> it would supposedly be treated as a URL that should then be fetched.
> Eitan, have I understood your proposal correctly?

Yes - exactly.

Eitan Adler
Received on Tuesday, 8 June 2010 09:10:15 UTC

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