Hi,
I am having a FileUpload control in my application. When the application is running and if i click on browse button of fileupload control, i have to view only files which are having extension ".doc" (MS Word documents) to upload. How can i achieve this one. Pls help me out on this.
nmakkena
0
Newbie Poster
Recommended Answers
Jump to PostUnfortunately you cannot set a filter for the file browser dialog, but you could add a JavaScript function that would validate the extension of the selected file when a new file is selected. Thus you can prompt the user when he makes an invalid selection.
JS function
All 4 Replies
Aneesh_Argent
6
Junior Poster
sedgey
58
Junior Poster
reach_yousuf
2
Junior Poster
tjaank
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.