Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • not working, it doesn't even hit my controller. If I remove processData and contentType, it works, but files still null. Commented Mar 31, 2015 at 11:12
  • It does work (check the url is correct). There must be other issues with your code - your view indicates there aren't even any controls within the form. Commented Mar 31, 2015 at 11:15
  • Is it possible to do the same thing but to have the HttpPostedFileBase in the RegisterViewModel model? Commented Jul 20, 2016 at 10:55
  • 1
    @smoksnes, Absolutely, and that is the preferred way to do it. Commented Jul 20, 2016 at 10:57