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

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

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 08 Jun 2010 17:00:45 +0200
Message-ID: <4C0E5B1D.7020602@lachy.id.au>
On 2010-06-08 16:37, Simpson, Grant Leyton wrote:
> Are you wanting the user to manually enter the filename, including
> the file:// scheme? If not, are you envisioning the file dialog box
> to provide a choice between selecting local files and entering an
> http/ftp url?

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?

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Tuesday, 8 June 2010 08:00:45 UTC

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