HTML <input type='file'> apply a filter

前端 未结 8 1848
清酒与你
清酒与你 2020-11-28 12:01

now when i will click the browse button, the browse dialog will show all files... what if i want to f

8条回答
  •  無奈伤痛
    2020-11-28 12:30

    Using MVC we can restrict upload to zip files only

    .HtmlAttributes(new { accept = ".zip*" })
    

提交回复
热议问题