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

Hi,

Thanks for the reply. However, I'm not trying to "disable" the uploads - in fact, I WANT to upload files =)

I did find this in your post interesting though:

print STDERR " CGI dump: " . Dumper(CGI->new);

..which prints out:

CGI dump: $VAR1 = bless( { '.parameters' => [], 'use_tempfile' => 1, '.charset' => 'ISO-8859-1', '.fieldnames' => {}, 'param' => {}, '.cgi_error' => '400 Bad request (malformed multipart + POST)', 'escape' => 1 }, 'CGI' );


I've never seen that error before - any ideas what i means?

TIA

Andy

Replies are listed 'Best First'.
Re^3: File upload is refusing to work
by ultranerds (Hermit) on Nov 16, 2010 at 13:14 UTC
    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
      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
Re^3: File upload is refusing to work
by Anonymous Monk on Nov 16, 2010 at 14:07 UTC
    Thanks for the reply. However, I'm not trying to "disable" the uploads - in fact, I WANT to upload files =)

    you were supposed to check those settings to make sure file uploads weren't disabled