O'Reilly logo

jQuery 1.3 with PHP by Kae Verens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

File uploads

There are a number of ways to upload files. The method used in this example depends on a bit of Flash. This is OK because these days, everyone except the staunchest diehards have Flash on their machines for watching videos online or whatever other purposes arise (and these staunch diehards probably frown at JavaScript anyway).

For this example, you will need to download a copy of the Uploadify plugin from http://www.uploadify.com/ and extract it into the root of your test server. In my case, I downloaded version 1.6.2. Uploadify has been around for a long time, and is well-regarded.

Ajax-based file uploads used to be tricky. The easiest method was to create a small form and submit it into a hidden iframe, which would then report back ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required