Html helper for <input type=“file” />

后端 未结 8 2036
予麋鹿
予麋鹿 2020-11-28 18:16

Is there a HTMLHelper for file upload? Specifically, I am looking for a replace of


using ASP.NET

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 19:04

    To use BeginForm, here's the way to use it:

     using(Html.BeginForm("uploadfiles", 
    "home", FormMethod.POST, new Dictionary(){{"type", "file"}})
    

提交回复
热议问题