Reputation: 8088
I want to force my user to only search in a particular folder when using the fileupload control. Is that possible?
Upvotes: 3
Views: 769
Reputation: 35117
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?
Upvotes: 1
Reputation: 9470
No, it's totally up to the client, as long as it's pure HTML, and not, say, ActiveX implementation.
Upvotes: 8
Reputation: 5563
Unfortunately not. The standard web browser file upload control can't be restricted in this way.
Upvotes: 1