Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7169957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:06:53+00:00 2026-05-28T15:06:53+00:00

I am writing an asp.net web app which involves the use of the FileUpload

  • 0

I am writing an asp.net web app which involves the use of the FileUpload control.

Right now, this particular FileUpload control only expects .zip or .gz file types. If an incorrect type of file is uploaded, An error message is displayed to the user. This functionality is already implemented.

What I want to do is to filter the visible file types that the user sees when he clicks on “browse”.

You may have seen a file opening dialog resembling the following.
enter image description here

I’ve circled the area that represents the file extension filter.

This is a feature so common that I expected it to be built in to the current FileUpload Control but after some searching online, I’ve found some posts that say it can’t be done.

Those posts were from 2009, more than 2 years ago.

Now, My question is: does the current Asp.Net 4.0 support this feature?, and if it doesn’t, do you know of any simple solution to get the functionality that I want.

I would like to again point out that I am able to validate whether or not the user chooses a supported file type. All I’m looking for is a cosmetic change, that will filter out unneeded file types in the open file dialog.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:06:54+00:00Added an answer on May 28, 2026 at 3:06 pm

    I believe it is not possible.Filter by file type in browser is not control by asp.net.It is a browser functionality.

    This question already asked in stackoverflow.Please click
    filter the file type with the file upload control

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm totally noob to asp.net mvc and currently i'm writing an web app which
I am writing a simple ASP.NET MVC web app. At this point, I am
I'm writing a MVC web app in ASP.NET MVC, which is supposed to be
I am being tasked with writing an asp.net web app that will use ADFS
Hey everyone.. This is my first time writing an ASP.NET MVC web app, and
I'm about to start writing a web app (Asp.Net/IIS7) which will be accessible over
We're writing an asp.net web app on IIS 6 and are planning on storing
I'm writing an asp.net web app. and i've hit a bit of a brick
Has anyone had any experience writing a web control (in either ASP.net, or javascript/HTML/CSS),
I am developing an asp.net web app in which I am using a span

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.