When you upload a file into cPanel, it says the status of it.
How long let etc..
Is there any way of doing this with php and javascript with a normal php upload?

When you upload a file into cPanel, it says the status of it.
How long let etc..
Is there any way of doing this with php and javascript with a normal php upload?
I'd imagine it gets your upstream speed and calculates from there onwards.
You'd need AJAX probably.
Not too sure about it myself.
I'm not sure how cPanel does it, but what you could do is record the filesize in a session and then check the file size of the uploaded file every 3 seconds or whatever until it's the same size as the original file.
Stumbled across this - http://pecl.php.net/package/uploadprogress - might come in handy
I know there are ways with javascript and stuff aswell.
Also, just found this - http://www.codeproject.com/KB/webfor...gress_Bar.aspx
Wow, I need this too.Stumbled across this - http://pecl.php.net/package/uploadprogress - might come in handy
I know there are ways with javascript and stuff aswell.
Also, just found this - http://www.codeproject.com/KB/webfor...gress_Bar.aspx
Thanks, +REPped.![]()
Want to hide these adverts? Register an account for free!