开发者

best jQuery AJAX multiple uploader [closed]

开发者 https://www.devze.com 2022-12-09 11:49 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.

Any suggestions?

Possibly something ve开发者_运维技巧ry interactive that I can multiple-select files. Thanks!


plupload - http://www.plupload.com/

supports multiple uploads in every type except basic html4

Allows uploads using HTML5, gears, flash, silverlight, BrowserPlus or plain on HTML4


Uploading files with Ajax isn't possible due to security reasons. There is a work-around with posting files to an iframe, but you can't select multiple files this way.

The solution lies in flash. The two most common flash uploaders are:

swfupload - http://swfupload.org/

uploadify - http://www.uploadify.com/ (jQuery only)


Another option is Uber-Uploader I have used it and it works well with a progress bar.


Or you could use the System.Web.UI.WebControls.FileUpload class in Asp.Net


At this point i'd stay away from flash plugins. I'd use HTML5 uploader instead like this one:valums uploader

Sure - you'll be able to select multiple files in modern browsers only, otherwise - it'll be file by file. but hey - if person doesn't care about upgrading to newer browsers - they really probably don't know how to Ctrl+click anyways.

Flash doesn't send cookies correctly (it sends IE cookies even if you use firefox or google chrome). So - you'll lose cookies and thus sessions. There is a workaround - to send PHPSESSID in POST requests - but it simply opens door wide open for session fixation.

0

精彩评论

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