javascript/flash library for file upload with file size limit and progress bar

孤街醉人 提交于 2019-12-02 12:37:48

问题


Is there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc. I found these (using flash):

  • Uploadify - not many releases, latest 12/2010, no documentation (!)
  • SWFUpload - latest release 03/2010, documentation
  • fancyupload - looks buggy.
  • phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?)
  • plupload

New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?


回答1:


Check jQuery-File-Upload. It's quite alright. (Also handles file size. Thats what you mean?)




回答2:


A new contender seems to be FileAPI, it uses HTML5 APIs, with flash as a fallback: https://github.com/mailru/FileAPI

Here is an article about it on Smashing magazine: http://coding.smashingmagazine.com/2013/10/11/we-wanted-to-build-a-file-uploader/




回答3:


Plupload and Uploadify look best up to my current research point...

I tried swfupload, it looked fine at the first sight but as I tried to use it, it started to be more and more cluttered, many of the features you see in the demo are unexpectedly not standard parts of the library, you have to get the example code and hack it a lot, it's not configurable (e.g. queue timeouts) etc... Refrained from using it.



来源:https://stackoverflow.com/questions/8856916/javascript-flash-library-for-file-upload-with-file-size-limit-and-progress-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!