Erwin said:
Ajax? Fine.
But how are you planning to use PHP to see ow many bytes are uploaded?
I did this in Java (easy), and Perl, but I don't think PHP gives you any
access to this knowledge.
As far as I know, PHP populates $_FILES and the like AFTER the upload is
completed.
If you have Perl installed on your webserver too, have a look at Mega Upload
(written in Perl).
Read more here:
sourceforge.net/projects/megaupload (when the site is up again....)
Regards and good luck,
Erwin Moller
This is no longer true as of PHP 5.2.0. See the uploadprogress
extension (
http://pecl.php.net/uploadprogress). Install this extension
and you can magically get progress information on uploads while they occur.
I have used this for upload progress monitoring in several applications
with great success.
OP, please note that "AJAX File Upload" is not really the proper term
here. You must submit your file upload via regular methods (one way is
to submit the file upload to a hidden frame) and then use asynchronous
requests (a.k.a. "AJAX") to *monitor* the progress. Submitting the file
itself via XmlHttpRequest is not possible.
Jeremy