---
title: "Customize file dialog control in MVC web application"  
description: "Customize file dialog control in MVC web application"  
author: "Anonymous User"  
published: 2014-10-28  
updated: 2014-10-28  
canonical: https://www.mindstick.com/forum/2450/customize-file-dialog-control-in-mvc-web-application  
category: "asp.net mvc"  
tags: ["asp.net mvc", "mvc4", "web application"]  
reading_time: 1 minute  

---

# Customize file dialog control in MVC web application

I want to create the [functionality](https://www.mindstick.com/blog/136/using-watermark-functionality-in-textbox-by-jquery) in which once [user clicks](https://answers.mindstick.com/qa/34556/if-a-user-clicks-all-the-google-ads-on-my-site-is-it-foul) on Browse [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) File [dialog box](https://www.mindstick.com/forum/34699/create-alert-dialog-box-in-android) will open. In this dialog box only '[Excel](https://www.mindstick.com/articles/12937/how-to-import-excel-data-in-sql-server-2014)' [format](https://www.mindstick.com/forum/162083/how-to-convert-ost-files-into-pst-format) file should be display and also in file type [dropdown](https://www.mindstick.com/articles/263/ajax-toolkit-dropdownextender-in-asp-dot-net) which is just above Open button in dialog box it should display on one format i.e. for excel.\
So for this [requirement](https://yourviews.mindstick.com/view/85169/becoming-an-influencer-requirement-of-skills-and-knowledge) can anybody give me some good suggestion.

## Replies

### Reply by Anonymous User

If you will specify accept=".excel" in <input> tag, you will be able to do the same.\
<input type="file" id="excelFile" accept=".xlsx" name="uploadFile"></input>


---

Original Source: https://www.mindstick.com/forum/2450/customize-file-dialog-control-in-mvc-web-application

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
