PhpRiot
Download This Article
Download this article in PDF format with all listings and files.

Price: $5.00 AUD
(Approx. $4.10 USD)

More information
Related Books
The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP

The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP

With over 3 million users worldwide, Adobe's Dreamweaver is the most popular web development...

The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP (The Essential Guide)

The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP (The Essential Guide)

Dreamweaver CS4 is a massive step forward in terms of integration with the rest of the CS4 suite...
Browse Articles
Ajax (4), APC (1), CAPTCHA (1), CSS (3), Debugging (1), File Upload (1), Google (3), Google Maps (2), JavaScript (12), JSON (2), MVC (1), MySQL (7), onbeforeunload (1), OOP (1), PHP (28), PhpDoc (1), PostgreSQL (6), Prototype (11), Reflection (1), RFC 1867 (1), Robots (1), Scriptaculous (1), SEO (1), Sessions (1), SimpleXML (1), Smarty (5), SOAP (1), SPL (1), Templates (2), W3C (1), XHTML (1), Zend Framework (1), Zend_Search_Lucene (1)

PhpRiot Newsletter
Your Email Address:

Monitoring File Uploads using Ajax and PHP

Conclusion

At this stage all of the required code has been implemented, meaning you should now be able to upload a file using the index.php file. Assuming your code all works correctly, the status of the upload should be displayed while it is uploading. Note that small files may upload so quickly you don't see any real-time updates.

While the code we implemented in this article does gloss over a few things (such as informative error handling), hopefully it does demonstrate our primary goal: how to monitor the status of a file as it is being uploaded.

The key points covered in this article included:

  • How to install APC and configure it correctly for upload monitoring
  • How to retrieve upload data from APC
  • How to develop a class using Prototype JavaScript library
  • How to send JSON data with PHP and receive it using Ajax

In This Article


Additional Files