5

With asp.net webapi 2, to check if a request contains multipart/formdata was as simple as calling the Request.Content.IsMimeMultipart() method. This method doesn't seem to exist. As a matter of fact, the entire Mimemultipart extension methods are absent.

What is the work around or the new way to handle this in MVC 6

MRainzo
  • 3,800
  • 2
  • 16
  • 25
  • Not sure if this will help, but this shows file uploads in the MVC6 tests: [FileUploadController.cs](https://github.com/aspnet/Mvc/blob/6.0.0-beta8/test/WebSites/ModelBindingWebSite/Controllers/FileUploadController.cs) – Jeff Ogata Nov 07 '15 at 13:39
  • @JeffOgata. Thanks. Will check it out and get back to you – MRainzo Nov 07 '15 at 15:04
  • Any solution yet? I think, I have the similar problem here http://stackoverflow.com/q/40629947/1306394. Please let me know if you've found any workaround. – shashwat Nov 17 '16 at 02:33

0 Answers0