in reply to Re^2: File upload is refusing to work
in thread File upload is refusing to work

Ok weird... it works now.

However, $IN is actually a variable from GT::CGI (not CGI.pm):

my $fh = $IN->param('client_local_offer_image_url'); while (<$fh>) { print STDERR $_; }


Not sure why CGI.pm wasn't working though - as I've used almost idential code in other projects!

Thanks for the reply anyway

Cheers

Andy

Replies are listed 'Best First'.
Re^4: File upload is refusing to work
by Anonymous Monk on Nov 16, 2010 at 14:05 UTC
    Point your form to this program and learn how CGI operates (quicker than reading the long documentation)
    #!/usr/bin/perl -- use CGI; use Data::Dumper; my @q = CGI->new("a=b"); push @q, CGI->new({}); push @q, CGI->new(); push @q, CGI->new(); print CGI->header,'<pre>', Dumper(\@q);
    Notice how only $q2 contains POSTed data