Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: File selector: how can I select a folder rather than a file


Message #1 by "Tim Zhang" <tzhang@h...> on Fri, 8 Jun 2001 16:16:09
Hi there,

In most cases, you can't. The browser will not let you select a folder. 
Whenever you select a folder and choose "Open" it will open the selected 
folder instead of adding its name to the input box.

You might be able to do this with some advanced VBScript and the 
FileSystemObject, but this will only work in IE and only when the 
browser's security settings are set to low (your site must be in 
the "Trusted sites" list of the browser.
So this option is only viable in an Intranet scenario.
In all other cases, you'll have to let the user select multiple files and 
add these to your form.

Hope this helps,

Imar


> in input tag, when type="file" is used, user can browse and select a 
file 
> name.
> 

  Return to Index