roadrunner has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
More upload-related questioning - I'm using the CGI::upload_hook functionality and would like to get a parameter value passed in via POST *before* calling the upload hook to process files. i.e. Something like this:
my $query = new CGI();<br/> $query->param("myParam");<br/> $query->new(\&hook);
Now according to the CGI docs this doesn't look possible:
"If using the function-oriented interface, call the CGI::upload_hook() method before calling param() or any other CGI functions: CGI::upload_hook(\&hook,$data);"
...and indeed my exprience bears this out - If I try and query any params before calling the upload hook I get missing data in the hook. Does anyone know of a way round this - i.e. querying parameter values before calling an upload hook ?
Thanks,
roadrunner.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI - How to use upload_hook and query the query string ?
by cees (Curate) on Feb 07, 2006 at 18:06 UTC | |
by ikegami (Patriarch) on Feb 07, 2006 at 18:35 UTC | |
|
Re: CGI - How to use upload_hook and query the query string ?
by ikegami (Patriarch) on Feb 07, 2006 at 18:22 UTC | |
by cees (Curate) on Feb 07, 2006 at 21:56 UTC | |
by ikegami (Patriarch) on Feb 07, 2006 at 23:07 UTC | |
by roadrunner (Acolyte) on Feb 08, 2006 at 13:08 UTC |