What you want can't be written in native PHP or most other languages, because of the way file uploads work.
Essentially, languages like PHP know nothing about the file you're uploading until AFTER the file has completed uploading, which pretty much makes a progress meter in PHP impossible.