looking for ajax image upload script

K

Ken1

Hello,

Does anyone know of an easy to implement ajax upload script for php
which also has a progress bar. If possible I'd like it to be able to
remove already uploaded files and do minor manipulations...
Thanks.
 
E

Erwin Moller

Ken1 said:
Hello,

Does anyone know of an easy to implement ajax upload script for php
which also has a progress bar. If possible I'd like it to be able to
remove already uploaded files and do minor manipulations...
Thanks.

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
 
J

Jeremy

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,883
Members
47,419
Latest member
ArturoBres

Latest Threads

Top