1

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?

Community
  • 1
  • 1
Tomas
  • 57,621
  • 49
  • 238
  • 373

3 Answers3

1

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/

Simon Epskamp
  • 8,813
  • 3
  • 53
  • 58
  • +1 Thanks. I finally used plupload which works great for me and make my library wrapper around it, but I will keep this in mind if I design a new system :) – Tomas Dec 10 '13 at 19:53
1

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

Aron Woost
  • 19,268
  • 13
  • 43
  • 51
  • but this also doesn't use flash? How can it then assure to be able to gain the file size before upload, cross-browser, according to the links I posted at the end of my question? – Tomas Jan 13 '12 at 22:42
  • The filesize is displayed in the Demo, right? Or am I missing something? – Aron Woost Jan 13 '12 at 23:07
  • [this](http://stackoverflow.com/questions/4190934/getting-upload-file-size-before-upload) and [this](http://www.kavoir.com/2009/01/check-for-file-size-with-javascript-before-uploading.html) question states that it's impossible to do this in sole javascript cross-browser. So I guess either it might not work in all cases (browsers) or there is some contradiction between the questions I linked and this plugin being flawless... – Tomas Jan 13 '12 at 23:18
  • Well, I can confirm that the plugin does not use flash. Other then that you might want to check the docs or leave a comment in the issue tracker. The project is very active... – Aron Woost Jan 13 '12 at 23:22
0

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.

Tomas
  • 57,621
  • 49
  • 238
  • 373