C#上传文件

前端:

<form role="form" class="form-horizontal" id="form1" method="post" enctype="multipart/form-data" action="../ImportStudentEnrollment/ImportExcelFile">

</form>

method要设置为post,enctype="multipart/form-data"

posted @ 2018-08-07 16:52  一直乱跑的熊  阅读(209)  评论(0编辑  收藏  举报