描述:Microsoft.AspNetCore.Http.IFormFileCollection 实现附件快速上传功能代码。
上传附件代码
[Route("myUploadFile")][HttpPost]public ActionResult MyUploadFile([FromForm] upLoadFile rfile){string newFileName = Guid.NewGuid().ToString("N") + rfile.mingcheng;string dirPath = Path.Combine(new string[] { Environment.CurrentDirectory, "wwwroot", "File"