Customize file dialog control in MVC web application

Total Post:29

Points:107
 1219  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. 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>

      Modified On Apr-06-2018 01:28:58 AM

Answer

NEWSLETTER

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