CUSTOMIZE FILE DIALOG CONTROL IN MVC WEB APPLICATION

Maria Susan

Total Post:29

Points:107
Posted by  Maria Susan
 1012  View(s)
Ratings:
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.
  1. Jeet Verma

    Post:110

    Points:776
    Re: Customize file dialog control in MVC web application

    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>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!