While trying to implement an MVC file upload example on Scott Hanselman\'s blog. I ran into trouble with this example code:
foreach (string file in Request.Files
The correct type to use is HttpPostedFileBase.
HttpPostedFileBase hpf = Request.Files[file];