hi all,
ok i have created an upload site (Jake Welton) which users can upload files to. Problem is there is not a upload progress bar. I am having trouble finding a way of creating such a thing. I have absolutely no idea where to start, can anyone help me???? or point me into the direction of some simple tutorials??
Many Thanks,
J
PHP upload progress bar
Started by welton122, Oct 21 2010 12:58 PM
7 replies to this topic
#1
Posted 21 October 2010 - 12:58 PM
|
|
|
#2
Posted 21 October 2010 - 04:04 PM
#3
Posted 21 October 2010 - 04:56 PM
You should look for an AJAX uploader progress bar, as this would need to be done in JS to show the progress based on the upload.
PEAR includes many CLI based progress bar examples, can be done if you telnet to the PHP page.
John said:
Can't be done.
Edited by Alexander, 21 October 2010 - 09:11 PM.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#4
Posted 22 October 2010 - 01:09 AM
can someone point me towards some tutorials for doing this please
#5
Posted 22 October 2010 - 01:40 AM
#6
Posted 24 October 2010 - 01:20 AM
Use AJAX, and then you can create a status process bar just this easy:
This should be in that file you load via AJAX
This should be in that file you load via AJAX
<table style="border: 1px solid #ACACAC; background-color: #FFFFFF"> <tr><td width="0%" style="background-color: #000000;"></td></tr> </table>Then you can set it to chance the value of the TD's width :)
#7
Posted 01 November 2010 - 11:33 PM
Clever idea. Just make a javascript code to use AJAX to get the loading progress then convert into percentage and set that as the TD width.
Oh yea you might want to give the td an ID (id="progress-bar") then you can use the getElementById("progress-bar") function (might not be %100 correct).
Oh yea you might want to give the td an ID (id="progress-bar") then you can use the getElementById("progress-bar") function (might not be %100 correct).
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).


Sign In
Create Account


Back to top









