Forgive me if this has already been discussed... I cannot find it on the current working draft spec...
I think an interesting addition to the input type=upload would be a script-accessible progress value. Either as a percentage, or probably more useful two values, one being the size of the upload and the other being current bytes sent.
Is this already in the spec somewhere? I can't find anything...
Also whilst we're on the subject, how about allowing multiple files to be selected from a single input element?
-----Original Message-----
From: whatwg-bounces@lists.whatwg.org [mailto:whatwg-bounces@lists.whatwg.org] On Behalf Of Eitan Adler
Sent: 08 June 2010 17:10
To: Lachlan Hunt
Cc: whatwg at whatwg.org; Simpson, Grant Leyton
Subject: Re: [whatwg] input type=upload (not just files) proposal
> 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