AJAX Upload

In good programming languages there is almost always more than one way to accomplish a goal, PHP is no different. Here we have two very different methods for showing an AJAX progress bar during a file upload which were recently discussed by bloggers Tomas Larsson and Joshua Eichorn.

Tomas describes his approach in Asynchronous file upload with AJAX progress bar in PHP using Prototype combined with PHP to accomplish his effect. Toss in a derivative of MegaUpload for server side receiving and monitoring of the upload, and you have a complete package.

Going a different route, Joshua provides PAFUPMU, a set of classes to show upload progress using HTML_AJAX. With any PHP version newer than 4.3.7 or 5.0 it provides similar functionality to Tomas’ solution. For older versions of PHP you either need to add a patch, or end up with a basic animation and no progress bar (reminded me a bit of KIT from Knight Rider, or the Cylon oscillating faceplate, pick one).

Although somewhat different approaches, both methods do agree on using hidden iframes to allow file uploading.

SOURCE: http://devzone.zend.com

More from my site

  • Where to buy IOTA in the Philippines? After Segwit2x was cancelled yesterday, people had been rushing to IOTA, Ethereum, Litecoin, and other coins. I received a lot of e-mails lately regarding where and how to buy IOTA using […]
  • Mario Kart DS: A must-have game for Nintendo DS Mario Kart DS is one of the top Nintendo DS Games nowadays. With it's superb gaming environment and awesome graphics, Mario Kart DS is a must-have for all DS Gamers. This popular racing […]
  • Digital Scratches by Jehzlau Concepts Break time at wala kasi magawa kaya nag cut cut ako ng shapes sa photoshop, at merge ko sila, tapos print screen, tapos cut ulit tapos transform image.. tapos image slice, tapos print […]
  • Depressed Again… Kainis naman ngayon lang sinabi na di pala ako kasama, next batch nalang daw dapat tinxt nalang ako na di pala ngayon... huhuhuu.. maaga pa naman ako nagising at excited na excited pa […]
  • James Bond 007: Quantum of Solace James Bond 007: Quantum of Solace is just another must-see movie this 2008. With the success of James Bond 007: Ca$ino Royale, this next installment is definitely fun-filled and exciting […]
  • Beware of Fujian Hua Min Export & Import Co., Ltd Beware of Fujian Hua Min Export & Import Co., Ltd. because they scammed one of my closest friend! And you can be one of the victims someday if you fall to their bait. My friend lost […]

Leave a Reply

Your email address will not be published.

18 + seventeen =

This site uses Akismet to reduce spam. Learn how your comment data is processed.