Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<asp:FileUpload questions

Status
Not open for further replies.

bouwob

Programmer
Apr 12, 2006
171
US
I cant seem to find this information anywhere.

1. How to I specify what directory should open when the browse button is hit? Does it work with remote servers?

2. How do I specify what files show up in the browse dialog. If I only want text files, how do I make it so the browse dialog only shows .txt'x?

TIA
 
the user will need to navigate to the directory where the file resides. you can only validate the file after it is uploaded to the server. you can do a preliminary(sp) check by examing the file extension in js. but that only a smoke/mirror test as the user can name the file anything.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top