Fixes the FileSystem controller

main
Paul Schneider 11 years ago
parent b83eaa8c66
commit e847248366
1 changed files with 3 additions and 2 deletions

@ -81,7 +81,8 @@ namespace Yavsc.Controllers
for (int i=0; i<hfc.Count; i++) for (int i=0; i<hfc.Count; i++)
{ {
// TODO Limit with hfc[h].ContentLength // TODO Limit with hfc[h].ContentLength
hfc[i].SaveAs(Path.Combine(BaseDir,hfc[i].FileName)); string filename = Path.Combine(Server.MapPath(BaseDir),hfc[i].FileName);
hfc[i].SaveAs(filename);
ViewData ["Message"] += string.Format("<p>File name '{0}' saved</p>",hfc[i].FileName); ViewData ["Message"] += string.Format("<p>File name '{0}' saved</p>",hfc[i].FileName);
} }
return RedirectToAction ("Index","FileSystem"); return RedirectToAction ("Index","FileSystem");

Loading…