Meanwhile…back in the land of File Upload solutions

p. My very first news article for devzone (way back when I was a wee cub reporter) was “FUN WITH FILE UPLOADS”:http://devzone.zend.com/node/view/id/36. It showed 2 different pieces of code to handle file uploads with AJAX. This morning I stumbled across another upload solution. This one seems to be solidly coded and a polished piece of code. (Yep, it’s shiny so your managers will love it!)

p. “w2box – Web 2.0 File Repository for PHP”:http://labs.beffa.org/w2box/ is actually a little more than just an upload script, it’s a full-blown file management script. It shows you what has been uploaded, allows you to view/delete files that have been uploaded and allows you to upload with a progress bar. (DISCLAIMER: After being wrong on the last progress bar discussion I do not present this as a REAL progress bar but in my exhaustive testing of uploading a single file to the demo site, it did seem to be accurate.) Aside from the fact that the progress bar uses a cgi written in Perl (why? Why? WHY?) it does seem to be a pretty cool (and free, did I mention free?) piece of code.

p. Fresh from from my clipboard, here’s the list of the features I copied form the site:

* Easy upload form
* Allow to define which kind of file can be uploaded
* Limit max file size
* On page table sort (by name, type, size)
* Direct deletion using AJAX
* View file by clicking on them
* Direct download by clicking on the download arrow
* Protect and hide upload or/and delete functions only for admin
* Logging upload/delete actions (time ip action)
* Upload progress bar (disable by default)

p. Sweet! Unfortunately, it does not come with any specific licensing information. The author does retain the copyright but seems to release the code for general use under the popular but legally unchallenged UIAYOR License. A quote form the code will explain:

 /* w2box: web 2.0 File Repository v3.0.2
  * (c) 2005-2006, Clement Beffa
  * http://labs.beffa.org/w2box/
  *
  * Use it at your own risk ;)
  *
  */

p. =C=

Published: April 3rd, 2006 at 7:57
Categories: News
Tags: , , , ,

One comment to “Meanwhile…back in the land of File Upload solutions”

I would mention that Mega Upload ( http://www.raditha.com/php/progress.php/ ) also uses a Perl script to provide a progress bar, but then I saw that w2box also uses raditha’s script. So we’re talking about the same progress bar solution, although it seems that w2box improved it a lot adding Ajax and making it look better (a link to raditha’s site would be kind, though). I’ve never seem a real progress bar made with pure PHP, and probably because it is totally impossible.