Home > DeveloperSection > Forums > Customize file dialog control in MVC web application
Maria Susan

Total Post:29

Posted on    October-28-2014 11:29 PM

 ASP.NET MVC ASP.NET MVC  Mvc4  Web Application 

 1 Reply(s)
 935  View(s)
Rate this:
I want to create the functionality in which once user clicks on Browse button File dialog box will open. In this dialog box only 'Excel' format file should be display and also in file type dropdown which is just above Open button in dialog box it should display on one format i.e. for excel.
So for this requirement can anybody give me some good suggestion.

Jeet Verma
Jeet Verma

Total Post:110

Posted on    October-28-2014 11:30 PM

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>

Don't want to miss updates? Please click the below button!

Follow MindStick