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

2010-08-06 Thread Ian Hickson
On Tue, 8 Jun 2010, Eitan Adler wrote: A lot of websites let you upload either from a file on your hard drive or from a link on the web. Most of the time this is done by having two different inputs: One for a file and the other for a URL. If there were some type of input like upload'

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

2010-08-06 Thread Tab Atkins Jr.
On Fri, Aug 6, 2010 at 12:10 PM, Ian Hickson i...@hixie.ch wrote: I think it might make sense to expose file upload progress on a form to a same-origin server. It would be interesting to see how the equivalent feature in XMLHttpRequest is received before we add this, though. I've made a note

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

2010-08-06 Thread Aryeh Gregor
On Fri, Aug 6, 2010 at 3:10 PM, Ian Hickson i...@hixie.ch wrote: I think it might make sense to expose file upload progress on a form to a same-origin server. It would be interesting to see how the equivalent feature in XMLHttpRequest is received before we add this, though. I've made a note

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

2010-06-09 Thread Rob Evans
[mailto:whatwg-boun...@lists.whatwg.org] On Behalf Of Eitan Adler Sent: 08 June 2010 17:10 To: Lachlan Hunt Cc: wha...@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

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

2010-06-09 Thread James Salsman
On Wed, Jun 9, 2010 at 5:22 AM, Rob Evans r...@mtn-i.com wrote: 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

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

2010-06-09 Thread Rob Evans
selection inside a single element however I would never have noticed anyway as I shun IE and avoid it like the plague. -Original Message- From: James Salsman [mailto:jsals...@gmail.com] Sent: 09 June 2010 13:47 To: Rob Evans; whatwg@lists.whatwg.org Subject: Re: [whatwg] input type=upload

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

2010-06-08 Thread Eitan Adler
A lot of websites let you upload either from a file on your hard drive or from a link on the web. Most of the time this is done by having two different inputs: One for a file and the other for a URL. If there were some type of input like upload' which will allow for any complete input. Something

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

2010-06-08 Thread Simpson, Grant Leyton
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? On Jun 8, 2010, at 10:32 AM, Eitan Adler wrote: It would then be the server's

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

2010-06-08 Thread Eitan Adler
On Tue, Jun 8, 2010 at 5:37 PM, Simpson, Grant Leyton glsim...@indiana.edu 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

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

2010-06-08 Thread Ashley Sheridan
On Tue, 2010-06-08 at 10:37 -0400, 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? On Jun 8,

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

2010-06-08 Thread Simpson, Grant Leyton
O.K. Just wanted to clarify. With this sort of dialog in mind, I like your proposal. (I find it unrealistic to think that the average user would write out file://... but maybe I am mistaken.) However, I see one possible issue. Some apps provide the means to work with local files, URLs, and

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

2010-06-08 Thread Mike Shaver
On Tue, Jun 8, 2010 at 10:47 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2010-06-08 at 10:37 -0400, 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

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

2010-06-08 Thread Lachlan Hunt
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

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

2010-06-08 Thread Ashley Sheridan
On Tue, 2010-06-08 at 10:58 -0400, Mike Shaver wrote: On Tue, Jun 8, 2010 at 10:47 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-06-08 at 10:37 -0400, Simpson, Grant Leyton wrote: Are you wanting the user to manually enter

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

2010-06-08 Thread Mike Shaver
On Tue, Jun 8, 2010 at 11:02 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Yes, and the rest of my email said that. Sorry, I am not familiar with KIO, and didn't see the need for OS support. KIO slaves on KDE work just like that. It's not something that I think a user agent can

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

2010-06-08 Thread Ashley Sheridan
On Tue, 2010-06-08 at 11:13 -0400, Mike Shaver wrote: On Tue, Jun 8, 2010 at 11:02 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Yes, and the rest of my email said that. Sorry, I am not familiar with KIO, and didn't see the need for OS support. KIO

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

2010-06-08 Thread Eitan Adler
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,