« Css links underline etc problem in IE | Javascript multidimensional objects »

Ajax file uploaders

By pavic | March 18, 2006

I’ve recently bidded to work on some AJAX upload plugin on RAC, for 75$.
First I tought to make a PHP AJAX upload for myself with one friend, and than I discovered dosen of PHP upload scripts on the net, and decided to download and test them, to use them as starting point.

In the beginning everything seemd fine, and promising, but…

Later I have discovered that thing are not that promising at all…

First of all, PHP does not allow You by default to see how much of the file has been uploaded.
Second, You can’t get user’s speed without sending data to his browser and back (approx 512kb) in order to make upload estimation, and this method is not good, because if something goes wrong Your script will continue to go with progress bar untill 100%, and stay there.

So I’ve downloaded and tested every script I could find at google.

It seemd that best solution is using PHP and PERL (cgi) together. CGI can return how much of file has currently been uploaded, and PHP has dosen of AJAX frameworks, and handles AJAX without any framework quite well.

Here is the table…

Topics: PHP |

Comments are closed.