Reacting to hosting API changes

This commit is contained in:
Praburaj 2015-02-27 16:18:05 -08:00
parent 72533d66df
commit 698af6d1d3
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ namespace MvcSample.Web
foreach (var f in files)
{
await f.SaveAsAsync(Path.Combine(HostingEnvironment.WebRoot, "test-file" + files.IndexOf(f)));
await f.SaveAsAsync(Path.Combine(HostingEnvironment.WebRootPath, "test-file" + files.IndexOf(f)));
}
return View();
}