in reply to Re: Re: CGI.pm file upload freaking me out
in thread CGI.pm file upload freaking me out
Even better could be to save the state of the form, submitted from the browser...my $file_name = param('photo'); use Data::Dumper; print Dumper($CGI::Q->{'.tmpfiles'});
...and then use that saved state to run the program in the debugger:use CGI qw(:standard); open(SAVE, ">test.out") or die "Can't open test.out: $!\n"; save_parameters(SAVE);
Then you can use all the wonderful features of the debugger to figure out why uploadInfo() isn't working as expected. ;)use CGI qw(:standard); open(SAVE, "test.out") or die "Can't open test.out: $!\n"; restore_parameters(SAVE); $photo_save_name ="something"; my $file_name = param('photo'); # ...
|
|---|