views:

190

answers:

3
+1  Q: 

FileUpload asp.net

I want to force my user to only search in a particular folder when using the fileupload control. Is that possible?

+1  A: 

Unfortunately not. The standard web browser file upload control can't be restricted in this way.

Eifion
Do you want to hint a path to the user?
Krishna Kumar
+6  A: 

No, it's totally up to the client, as long as it's pure HTML, and not, say, ActiveX implementation.

Ron Klein
+1  A: 

How do you know that folder exists?

If it's a network share perhaps a better idea would be to have the webserver itself create a listing of all the files and folders at that location and let the user navigate to the appropriate file?

Spencer Ruport
i like that idea. I'm gonna try and create a modal popup that has a list of thumbnails to select from that file.
Eric