[whatwg] input type=upload (not just files) proposal
lachlan.hunt at lachy.id.au
Tue Jun 8 08:00:45 PDT 2010
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
Eitan, have I understood your proposal correctly?
Lachlan Hunt - Opera Software
More information about the whatwg