« PHP Magazine Network and Hosting of AWS AJAX Demos | Main | SQL Server 2005 and Ajax.NET Professional, RowNumber Example »

PHP AJAX File Upload Progress Meter Updates

Joshua posted updates about the PHP AJAX File Upload Progress Meter. The patched version gives more information such as upload speed and estimated time to completion, Joshua also created wiki to start the documentation process. You can see the demo working online with patch and extension and without patch.

Over the weekend my file upload progress meter code got lots of traffic. It seems it made it made it on the del.icio.us popular list as well as getting over a thousands diggs. To celebrate this i’ve updated the code.

[...]

The basic way the code works is we take a form containing a file upload and submit it using a hidden iframe as a target. Doing this lets the upload happen in the background. Then we poll the server on a regular basis (say a 2 second interval) asking it for update status. If you have the patch+extension installed this gives you file upload speed etc. If you don’t have the extesion we stop making AJAX calls and just animate the status bar until the upload finishes in the iframe and tells us were done.

Bookmark this article at these sites
Comments
1

If anybody is interested, I wrote a similar method, but without Prototype and using JSON - with proper compression, the total JavaScript is around 4KB!. Take a look at http://www.seemsites.net/projFolder/uploader

2

Doesn't work, tried uploading a 500 MB file and it said completed within 3 seconds. I know my upstream isn't more than 48KB/s, so there is no way it actually uploaded.

I am also not going to digg this, because its really no brainer, Upload with progress bar has been around for quite some time, which all they did was refresh the popup window. Now it just a AJAX version of the same.

Firefox 1.5.0.1.

Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):