开发者

What is the best way to upload files with jQuery?

I am using jQuery and love it.

I need to allow users to upload files. What's the best solution?

  • a "standard" solution would be better
  • bonus points for drag and drop of files from the desktop
  • bonus points for allowing fi开发者_如何学编程le upload + other parameters in my mvc server app


Here's the best AJAX file uploader:

http://valums.com/ajax-upload/


I personally have used Uploadify and I agree with jlg, it is not a good plugin. Every version of this plugin works differently and has different function names and the last version does not work with IE. I suggest Ajax Upload which works fine with ASP.net and also AjaxFileUpload for PHP


What I used before I switched to the AJAX ControlToolkit was uploadify. http://www.uploadify.com/ I couldn't ever get it to work because it clashed with other plugins that were on the site so I deleted everything and am just using the AJAX Controls for my ASP site.


Your best bet would be to use an ajax upload library someone has created and customize for your needs. I personally have used ajaxUpload, but any library will probably do what you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜