Eric
Eric

Reputation: 8088

FileUpload asp.net

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

Answers (3)

Spencer Ruport
Spencer Ruport

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

Ron Klein
Ron Klein

Reputation: 9470

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

Upvotes: 8

Eifion
Eifion

Reputation: 5563

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

Upvotes: 1

Related Questions