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

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

From: Ashley Sheridan <ash@ashleysheridan.co.uk>
Date: Tue, 08 Jun 2010 15:47:17 +0100
Message-ID: <1276008437.2246.23.camel@localhost>
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, 2010, at 10:32 AM, Eitan Adler wrote:
> 
> > It would then be the server's job to fetch the file unless the user
> > passed it a file:// scheme it which case the file would be provided by
> > the UI.
> 


I can see how this might work, but in theory it would be more difficult
than it sounds. For example, passing an FTP uri would only work if that
FTP server allowed anonymous access, as you wouldn't want to pass your
own FTP access credentials to an unknown server.

The local machine could determine if the FTP server they are giving a
file reference to allows anonymous access I guess, and in cases where
the FTP server doesn't, then it could behave like the KIO slaves in KDE,
which allow local mapping of files at remote locations, such as SMB,
FTP, SFTP, SVN, etc. But this is something that can only really be
offered at the operating system level.

Thanks,
Ash
http://www.ashleysheridan.co.uk


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100608/86e85bd9/attachment-0001.htm>
Received on Tuesday, 8 June 2010 07:47:17 UTC

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