in reply to Understanding CGI::upload_hook() ;

I have a working example of an upload meter script that you can have a look at. It uses some AJAX calls to update the webpage of the progress. You can try it out at the following URL:

http://cees.crtconsulting.ca/perl/examples/uploadmeter/

There is a link to a tarball containing all the code to get it running on that page as well.

It uses the CGI.pm upload hook to manage the upload, so it should give you some good hints on how to get it going in your script.

Replies are listed 'Best First'.
Re^2: Understanding CGI::upload_hook() ;
by rolinger (Initiate) on Aug 19, 2005 at 21:01 UTC
    I downloaded the .tar but there was an error unzipping it with WinZip.

      Odd. There is nothing wrong with the tar file, as I can untar and gunzip it no problem. I have placed a zipped version up there, maybe that will work for you. Or just browse the files online.

      Hope that helps

      Update: Apache was gzipping the output since I had the DEFLATE filter on. Renamed the file to .tar.gz and added 'RemoveOutputFilter DEFLATE' to apache conf. I have updated the links in the parent thread so it should all be working now.