Udlei Nattis wrote:
hi,

i have problem for upload files
testing use CGI and CGI::Simple

look file.pm:

   $cgi = CGI->new;
   $r->print($cgi->param("test")." xxx ");

file .html

<form action="end" method="post" enctype="multipart/form-data">
<input type="file" name="image">
<input type="hidden" name="test" value="abcdef">
<input type="submit">
</form>

when i add enctype param("test") return undefined value
and wne i remove enctype param("test") print "abcdef"

my question is: why when i add enctype, param("test") return undefined value?

Does the same program works with mp1? Do you use the latest mp2 (at least 1.99_08), better cvs?


The 2.0 test suite has an upload file test (CGI.pm) and it works fine with the current mod_perl. Please look at the pair:
t/modules/cgiupload.t
t/response/TestModules/cgiupload.pm
in the mod_perl source.



__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com



Reply via email to