Calculate total upload size and monitor progress.