There really isn't a great solution for this, that I know of. It's one of
the few things that makes an argument for ASP over PHP, as far as I'm
concerned (if you have the luxury of choosing). Below is what I did once to
try to get around the problem. It worked *okay*.
How does this argue for ASP over PHP? I don't see how. File upload on PHP is
built in and therefore free. ASP file upload mechs cost more money. And,
having used ASP for a while, and having looked for this feature, no upload
progress bar exists there either. And PHP is a language, where ASP is a
service ... please do not confuse the two. If you want to argue VBScript vs.
PHP , well ,come on ... let's go. :^] PHP can beat VBScript with one
curly-brace tied behind its back.
I mentioned a while back, when this came up before (see the archives) that
this could probably be done with an IFRAME in the upload dialog box. Now I
haven't given this much thought, but maybe it could be done. The largest
problem that I see is the communication back and forth between client and
server. The server would have to know the original size of the file at the
point the upload is started, then it would be checked for original_size
minus bits_uploaded, flush the reults to the IFRAME drawing a GD graph, and
continue to do this as it went on.
Another method is to start the upload with a non-progressive animation that
quits when is_upload_file() returns true.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php