in reply to Re: Upload Progress Bar
in thread Upload Progress Bar

Hey Red, Thanks a lot, thatīs exactly what I was looking for. Iīve visited CPAN and in fact I think it will do. But, tell me, I can run this module even without mod_perl? My host's server is Apache.

The one thing that still remains a mystery to me is how to manage, and by how many scripts, the signals and the processing of the file. I still donīt know if I can have the same script that processes the file upload and processing, to check $upload->size, tell the status bar (in wich page?) the new status or to get lost as the upload ends.

Other thing is the javascript. Iīm not very skilled in javascript. Can you send me your code, or some sample of it? I donīt have a clue of how to do it...

Thank you very much!

André

Replies are listed 'Best First'.
Re^3: Upload Progress Bar
by redhotpenguin (Deacon) on Dec 26, 2004 at 06:46 UTC
    For information on javascript check here.

    I had the upload handler write the byte count to a session file, and the monitor process which was opened through the javascript on the "Upload" button read from the same session.

    CGI.pm also has an upload_hook subroutine which you can use to do this - you don't explicitly need a::r. You might also want to take a look at Apache::UploadMeter , I was using mod_perl2 so I had to roll my own.