R
roadrunner
Hi,
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.
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.