Entering Plupload (aka the death of FileUploadForm)
In Wigbi 0.99, I had a really handy UI plugin called FileUploadForm, which could upload any number of files with AJAX. All you needed to do was to add such a form to the page to have it handle the entire file upload process automatically.
However,as I yesterday sat down to migrate the old plugin so that it would work together with the new Wigbi version, I thought “hey, three years have passed – there MUST be an even easier way to upload files”.
Believe it or not…there was.
The people behind Tiny MCE have created a really nice file upload component called Plupload. It supports several ”runtimes” – from jQuery-based file upload in HTML4/5 to Flash, Silverlight, Gears etc. and is insanely easy to configure. You can tell Plupload which runtimes you’d prefer to use, which file types to support etc. The users can then upload files either with a regular “select file(s)” dialog or by dragging files from an Explorer/Finder window.
To make Plupload work flawlessly with Wigbi, I moved the upload.php file to the ~/wigbi/pages/ folder and added some extra functionality, like starting/stopping Wigbi and being able to adjust the target folder with a query string variable. All in all, adding Plupload to my Wigbi-based site took 10 minutes and worked perfect.
Due to this, I will not create a new version of the old FileUploadForm plugin. I will rather add an upload.php dummy page to the ~/wigbi/pages/ folder, that describes how to adjust the upload file that is included with Plupload.
