62,047
社区成员
发帖
与我相关
我的任务
分享
<form action="DownloadAdd" method="post" enctype="multipart/form-data">
@Html.Label("文件名")
<input type="text" name="Name" />
@Html.Label("顺序")
<input type="text" name="OrderNum" />
@Html.Label("上传")
<input type="file" name="fileData" />
<input type="submit" value="确定" />
</form>
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult DownloadAdd(FormCollection form)
{
DownloadDAO downloadDao = new DownloadDAO();
Download download = new Download();
if (Request.Files.Count == 0)
{
return MessageBack("请选择下载文件!");
}