Controllerで次のコードを使用すると
[HttpPost]
public ActionResult Index(HttpPostedFileBase file)
{
string path = Path.Combine(Server.MapPath("~/Images"),
Path.GetFileName(file.FileName));
file.SaveAs(path);
ViewBag.Message = "File Uploaded Successfully";
return View();
}
アプリケーションを実行すると、次のエラーが発生しました
---Server Error in '/' Application.
---The resource cannot be found.
削除する[HttpPost]
とロードされますが、ファイルはアップロードされません...
誰でも私を助けることができますか?.......