Just saw the Dynamic Progress Bar at dynamicdrive.com and started wondering about the following:
At our website we have a page where people can apply for a job. They need to fill in their name, address, and so on. Plus upload their resume! Because the uploading could take long I made a script (code available on request) hat will displays the following div on the moment the user presses the "Submit" button.
It's a dutch message saying that the uploading can take some take and asking them to please be patient.
text-align: left; color: #000000; background-color: #ffffff; border: 3px solid
#ff0000; padding: 3px; position: relative; visibility: hidden;">Het uploaden van
uw bijlage kan enige tijd inbeslag nemen (afhankelijk van de omvang), een moment
geduld alstublieft.</div>
But what about if I could make a Dynamic Progress Bar that actually would display how long the uploading will take. For this it should be able to interact with the upload-script to determine how long the uploading will take. Or it should be able to calculate (with javascript) how bog the file being uploaded actually is. Wouldn't that be cool?
So my question is:
Who knows a way of calculating how big the selected uploading-file is? (The next step would be converting to seconds or minutes.)