asp.net mvc file upload ajax post

前端 未结 4 1569
不思量自难忘°
不思量自难忘° 2020-12-18 11:27

Hi I was just wondering if its possible to do an ajax post a file in asp.net mvc, basically i have a form with two buttons, one of the buttons extracts images for the select

相关标签:
4条回答
  • 2020-12-18 12:06

    Flash upload works the best if its an option as it gives you more flexibility on the UI side. There are a lot of jQuery plugins that will do this. Uploadify is the one I like best. If you can't use Flash, check out this post on how to do jQuery file uploads in asp.net mvc without flash, which uses the jQuery form plugin mentioned previously.

    0 讨论(0)
  • 2020-12-18 12:08

    You may take a look at the jQuery Form plugin which allows you to ajaxify forms that contain file inputs.

    0 讨论(0)
  • 2020-12-18 12:11

    Using web controls under MVC application is a real mess. I suggest you to try this sample project. ( Also, there are many useful MVC samples in there )

    0 讨论(0)
  • 2020-12-18 12:11

    there sure is. If you use the ajaxForm plugin you should be able to do it no problem. I've implemented this on my site and it works very well. Here's and example: http://jquery.malsup.com/form/#file-upload

    0 讨论(0)
提交回复
热议问题