How do I get jQuery's Uploadify plugin to work with ASP.NET MVC?

前端 未结 6 1344
梦如初夏
梦如初夏 2020-12-04 09:37

I\'m in the process of trying to get the jQuery plugin, Uploadify, to work with ASP.NET MVC.

I\'ve got the plugin showing up fine with the following JavaScript snipp

6条回答
  •  悲哀的现实
    2020-12-04 10:17

    Reading the documentation, it looks like it is sending an array of files. Have you tried:

    public string Upload( HttpPostedFileBase[] fileData )
    

    It's also possible that the default model binder won't work with HttpPostedFileBase and you'll either need to use Rory's mechanism or write your own model binder.

提交回复
热议问题