I am writing an asp.net web application that uses the FileUpload control.
Currently, this particular FileUpload control expects only .zip or .gz file types. If the wrong file type is loaded, an error message is displayed to the user. This functionality has already been implemented.
What I want to do is filter out the visible file types that the user sees when he clicks on “view”.
You may have seen a file open dialog box similar to the following.

I circled the area representing the file extension filter.
This is such a common feature that I expected it to be built into the current FileUpload control, but after some searching on the Internet I found a few posts that say this is not possible.
These positions have been since 2009, more than 2 years ago.
Now, my question is: does the current version of Asp.Net 4.0 support this function ?, and if not, do you know of any simple solution to get the necessary functions.
I would like to point out again that I can check if the user selects a supported file type. All I'm looking for is a cosmetic change that filters out unnecessary file types in the open file dialog.
Sam i am
source share