Categories: Web Stuff

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

jehzlau

I'm a newbie web developer

Share
Published by
jehzlau

Recent Posts

Convert your WordPress blog into a mobile app for free

If you're already an expert in "Progressive Web Apps" and you already have a mobile…

April 7, 2018

Philippines ranked 5th in Bitcoin volume by currency

Yep, you read it right. The Philippine currency (PHP / Pesos) ranked 5th in the…

November 3, 2017

Where to withdraw your Bitcoins in PH after the SegWit2x Hard Fork this November?

If you're using Coins.ph to convert your BTC to Philippine Pesos like me, then you…

October 22, 2017

Poloniex 101: Newbie’s Guide to Buying and Selling Cryptos in Poloniex

If you're already trading cryptos, then this post is NOT for you. This is a…

August 30, 2017

Why you should NOT buy Bitcoins from Coins.ph

I love Coins.ph, it's convenient to buy mobile load, pay bills, and to send cash…

May 23, 2017

Buy Ethereum’s ETH/ether in the Philippines

February 1, 2018 UPDATE The ETH wallet in the coins.ph Android app is now open…

May 1, 2017