W3C home > Mailing lists > Public > www-forms@w3.org > April 2005

Re: Directory picker control

From: Erik Bruchez <erik@bruchez.org>
Date: Fri, 15 Apr 2005 10:48:45 +0200
Message-ID: <425F7FED.1040907@bruchez.org>
To: www-forms@w3.org
CC: Micah Dubinko <micah@dubinko.info>

Micah,

With the HTML file upload control, you will have to select a file, and 
then upload it. There is also no guarantee that the user agent will send 
the path. It appears that IE sends the directory and file name 
information, but FireFox does not (just checked this with OPS).

Upload size is not limited by HTTP, but of course it makes no sense to 
upload a 100 MB file just to browse a directory. Then what if the 
directory is empty? You won't be able to select a file name and then 
extract the path information.

So it appears that this particular solution is bad for seelcting 
directories, and a little less so for selecting files, but in the latter 
case you have to use IE and to be ready for a potentially long upload...

Now I am thinking that after the user has selected a file, it may be 
possible to extract the file name from the control, store it into 
another HTML field, and then somehow disable the upload.

-Erik

Micah Dubinko wrote:
 >
 > I have a client requesting a file/directory-picker control. A "browse"
 > button, and the resulting filesystem path goes into the instance data.
 >
 > I know that <upload> has <filename>. Has anyone used this as a directory
 > browser? I'm curious about how implementations have handled this.
 >
 > Thanks,
 >
 > .micah
 >
Received on Friday, 15 April 2005 08:48:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:00 GMT