Jump to content

File Upload Progress Bar


clonetrooper9494

Recommended Posts

I found this (http://us3.php.net/manual/en/apc.configuration.php#ini.apc.rfc1867) I am not sure I understand it though. if I wanted to make a progress bar, I would have the script return the total and current and the rate, but how would I use JavaScript to add the rate to current so it was accurate? Do I add it every second? Is this the correct way to make a upload progress bar?

Link to comment
Share on other sites

I haven't used that method before, but it sounds like you send an AJAX request to the PHP script to look up the correct key from the APC cache which has the information needed. You would have the PHP script send back whatever information you want, I guess the only thing you really need is the percent complete. If you want to send the total size or whatever else you can format the PHP response using JSON or something else that Javascript will understand.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...