AJAX-y Goodness For You
A week ago when John Paul wanted to send me the video clip from my bachelor hike, we had some trouble: the file was about 19 megabytes, far too big for Gmail’s 10MB attachment limit. We tried to send it through instant messenger, but as is often the case, one or both of our firewalls prevented that from working properly.
The easiest solution was for me to write up a quick CGI script so he could upload it to my website, from which I could then download it.
But uploading a 19MB file on a slow DSL connection takes a long time; it took almost an hour, and about 20 minutes in, John Paul was asking me, "ah... is it going? my browser is just sitting here..." It uploaded fine, but many an impatient (i.e. normal) internet user would have assumed it wasn’t working about a half-hour into it, and closed the window.
So I decided to whip up a little AJAX goodness and have the upload page show a progress bar and an ETA for file uploads. The result is the Encodable Industries AJAX File Uploader, which you can try out right here. You can also download the script to use on your own website by visiting its homepage over on Encodable.com.