另外,如果我使用“HttpPostedFile”代替“HttpPostedFileBase”,为什么会出现异常?
[HttpPost]
//This doesn't work
public ActionResult Upload(HttpPostedFile image) {
//code
}
[HttpPost]
//This works fine
public ActionResult Upload(HttpPostedFileBase image) {
//code
}