Just another Perl shrine | |
PerlMonks |
CGI::Application file upload Assertion error with Data::Dumperby gman (Friar) |
on Dec 18, 2009 at 17:17 UTC ( [id://813400]=perlquestion: print w/replies, xml ) | Need Help?? |
gman has asked for the wisdom of the Perl Monks concerning the following question: Hello I am building a web application based on CGI::Application. Also using Plugin::Session to keep session state. In one run mode of the application users are allow to upload a file. I am also saving session state in my post run using:
my session Driver is file and I believe therefor uses Data::Dumper. Anytime I try to either Dump the session data using Dumper() or hit the pst run I get the following error:
Also if I die $q->param('bulk_upload'); the field is not populated. bulk_upload is the name of my upload field. Has anyone seen this? I found this http://www.nntp.perl.org/group/perl.perl5.porters/2009/05/msg146341.html but don't know enough to know if this is the same issue. Thanks in advance, Cory UPDATE: perl 5.10.1 installed, getting same error, but found this post postTalks about deleting the FH pointer in the session, I have both
funny thing is it gets past this the first time, and if I clear the CGI session file,
After that I get the following Do not know how to reconstitute blessed object of base type GLOB UPDATE: PROBLEM SOLVED on the advice from ikegami and others, of not including the CGI upload FH in the session data. I realized that the CGI param had to be copied to a variable and removed from the CGI param list before the CGI::Session config Here is what the I had to do in the CGI::Application setup stage.
Thanks again to all that helped
Back to
Seekers of Perl Wisdom
|
|