View Full Version : Uploading Status?
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?
Calon
02-09-2008, 08:06 PM
I'd imagine it gets your upstream speed and calculates from there onwards.
hamheyelliot
02-09-2008, 08:16 PM
You'd need AJAX probably.
Not too sure about it myself.
Invent
02-09-2008, 08:30 PM
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.
Trinity
02-09-2008, 08:35 PM
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/webforms/File_Upload_Progress_Bar.aspx
Calon
03-09-2008, 11:03 AM
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/webforms/File_Upload_Progress_Bar.aspx
Wow, I need this too.
Thanks, +REPped. :)
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.