in reply to Re: Ok, what am I doing wrong with my use of CGI::Upload?
in thread Ok, what am I doing wrong with my use of CGI::Upload?

$query is a hold-over from the real code (I was trying to pare down the code into an example I could easily post).  $self is part of a CGI::Application framework.

  • Comment on Re^2: Ok, what am I doing wrong with my use of CGI::Upload?

Replies are listed 'Best First'.
Re^3: Ok, what am I doing wrong with my use of CGI::Upload?
by friedo (Prior) on Feb 06, 2006 at 18:15 UTC
    CGI::Upload needs the query object, not the CGI::App object. Try my $upload = CGI::Upload->new( { query => $query } );.

      Ok, trying that... nope, doesn't help.  CGI::Upload understands $upload = CGI::Upload->new({query => $query}) and gives the exact same Data::Dumper dump ( die Dumper(\%file, \@foo) ):

      Error executing run mode 'import_file': $VAR1 = { 'handle' => bless( \*IO::File::_GEN_0, 'IO::File' ), 'name' => 'user_editor_outline.txt', 'type' => 'txt', 'mime' => 'text/plain' }; $VAR2 = [];