Can EditorFor() be used to create <input type=“file”>?

前端 未结 4 664
名媛妹妹
名媛妹妹 2020-12-16 11:16

Given this model, is it possible to use the Html.EditorFor() to render a file upload input element to the page? I played around with the Datatype of the property FileName,

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-16 11:43

    No but take a look at http://haacked.com/archive/2010/07/16/uploading-files-with-aspnetmvc.aspx

提交回复
热议问题