ASP.NET MVC中怎么样上传图片

[复制链接]
查看11 | 回复1 | 2012-1-16 17:24:16 | 显示全部楼层 |阅读模式
html部分: 后台: public ActionResult Process(HttpPostedFileBase up1){
//为了演示所以在这里我就把参数名与name名一致即可
up1.SaveAs(Server.MapPath("~/" + up1.FileName));
return Content(up1...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行