I created this website for a client that users can open a power point presentation file but the files are like from 20 MB to 60 MB. it takes a looooooong time to load. people may even think the PC is frozen. how can i create a File Loading Progress Bar so users wont get that impatient?
I know I can use an animated GIF or like a Flash file. But how can I get how much of the power point presentation file has been downloaded? For programming I usually use PHP, but im kinda intermediate.
Nearly impossible - there are some dirty tricks, but i’ve never seen any of them work like it should.
The one I use is fairly simple (at least for recurring customers), and more importantly, doesn’t slow down the the download speed:
Step 1: calculate the size of the file.
Step 2: create a log (txt, mySQL, doesn’t matter) to store the averages (from any customer)
Step 3: when a user finishes downloading, place the speed/time in a cookie.
Now you can easely calculate the time & speed. If the user doesn’t have any stored avarage, you can use the average from your log.