My very first news article for devzone (way back when I was a wee cub reporter) was FUN WITH FILE UPLOADS. 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!)
w2box – Web 2.0 File Repository for PHP 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.
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)
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 ;) * */
=C=

Comments