Forum Moderators: coopster
Any ideas on this?
1. PHP can't do anything without resending a page (server side, remember). Since the response to the upload isn't sent until the upload is completed, PHP can only show a progress of 100%. In other words, even if you could use PHP to calculate the progress during the event, you have no way of showing it to the user that I can think of.
2. You can't assume that the most recent temp file relates to any one user. If 10 users are uploading at the same time, who has the "the most recent" temp file? How will you track that? I don't think there's any way to guard against concurrency.
I think the only way to do this is with a client-side application that knows the size of the original file and can track how many bytes have been sent.
I'm not sure whether I can post the URL; you'll have to search with Google for "php file upload progress". Sticky me if you can't find it.