multiple files upload using single file tag

后端 未结 1 1143
鱼传尺愫
鱼传尺愫 2021-01-25 02:17

I Have seen many posts about everyone is using this approach

相关标签:
1条回答
  • 2021-01-25 03:02
    [HttpPost]
    public ActionResult Upload()
    {
    foreach(var file in Request.Files)
    {
            file.SaveAs("myPath");
    }     
    return RedirectToAction("Index");
    }
    
    0 讨论(0)
提交回复
热议问题