Re: Suggestions of some good, simple file upload 'in progress' code?
| From: | Manuel Lemos | Date: | Thu, 23 Apr 2009 03:01:39 +0000 |
| Subject: | Re: Suggestions of some good, simple file upload 'in progress' code? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291853@lists.php.net to get a copy of this message | ||
Hello,
on 04/22/2009 04:46 PM scubak1w1 said the following:
> I am thinking that is where I am at... as you said, the user just needs to
> know that there computer is busy, hang on a second already! <grin>
>
> I like those icons - if I may be so bold though, and excuse the broadness of
> the question, are you / can you use some Javascript to display this as the
> file uploads? I am already using AJAX on the page/form so I guess I could
> add an icon to the page before I run the PHO to upload the file, yes?
You may want to take a look at this forms class that comes with an
upload progress plug-in.
http://www.phpclasses.org/formsgeneration
That plug-in sends an AJAX/COMET request when the form upload starts and
the files are long enough, it shows a progress bar with some statistics
like upload speed, transferred data, remaining time, etc.. Here you can
see it working live:
http://www.meta-language.net/forms-examples.html?example=test_upload_progress
You may also want to watch this tutorial video:
http://www.phpclasses.org/browse/video/1/package/1/section/plugin-upload-meter.html
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/