in reply to CGI.pm, passing query params to upload hook

Hi,

Did you read simple CGI::upload_hook() guide or example? I think your problem is solved there. also have a look at CGI::ProgressBar

Welcome to the Monastery !

Please go through PerlMonks FAQ, The Perl Monks Guide to the Monastery for more information on how the Monastery works. How (Not) To Ask A Question will be a good guide. There are hundreds of thousands of posts here. Super Search is your friend.

Updates :

Cheers !

--VC



There are three sides to any argument.....
your side, my side and the right side.

  • Comment on Re: CGI.pm, passing query params to upload hook

Replies are listed 'Best First'.
Re^2: CGI.pm, passing query params to upload hook
by rocku (Initiate) on Aug 13, 2007 at 09:08 UTC
    Hi!
    Thanks for a quick reply. Somehow I've missed Understanding CGI::upload_hook(), the example shown there did give me a hint how to solve my problem. I've set a cookie with the ID and read it before creating the query object. Here is my code:
    sub get_cgi_query { my %cookies = CGI::Cookie->fetch; my $hook_id = $cookies{CGISESSID}->value unless !defined($cookies +{CGISESSID}); if (defined($hook_id)) { return CGI->new(\&hook,$hook_id); } else { return CGI->new(); } }