Upload Progress Meter extension 0.9.2 released

  • Christian Stocker

Today, I released uploadprogress 0.9.2, nothing groundbreaking since the initial 0.3 release, mainly bugfixes ( changelog). This means that there are still no other SAPIs than mod_php officially supported.

The main new function since 0.9.1 is uploadprogress_get_contents($id), which allows you to analyse the content of an uploading file during the upload and do appropriate measure (for example warn the user, that he doesn't upload a supported video format). You have to enable this feature in php.ini to make it work. This feature was provided by Ben Ramsey, so you have to poke him, if something's wrong with it.

Another major addition is an as-simple-as-possible example, which also tries to give meaningful error-messages, for example if your file-to-be-uploaded was way too small to say for sure if it worked or not. It also doesn't use any fancy AJAX/XHR/Technology-of-the-day Shizniz, just plain old iframes with some reloading Javascript code and three PHP files. See cvs.php.net/viewvc.cgi/pecl/uploadprogress/examples for the code, put them into a directory of your webserver and it should work (or as said give meaningful error messages).

As an alternative to the uploadprogress extension I can also recommend the YUI Uploader component, which uses Flash and therefore doesn't need any server side components for doing a progress bar. It also has additional features like multiple file selection. But a Flash based solution may or may not be ok for you :)

In a next post I'll write about some of the common pitfalls and problems one may encounter with this extensions. I hope that will clarify some of the more common issues.


Tell us what you think