in reply to CGI - How to determine content length for multiple files ?
Massive Data Aggregation with Perl by Fred Moyer
shows how to do a mod-perl based upload and give the user constant
feedback via Javascript. It's not the entire solution for you, but it should help. Good luck.
In Section
Seekers of Perl Wisdom