perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Javier Gracia Tabuenca <>
Subject "end of file found" in apache upload
Date Fri, 23 Jun 2006 08:18:13 GMT

I have a problem whit upload files.

I have the last version for this packages:

CGI           3.20
libapreq2     2.07
HTML::Mason   1.32

and I use a simple code in mason for upload:

      $fitxer => undef

    <% $content %>
    <form METHOD="POST" ENCTYPE="multipart/form-data">
    <input type="file" name="file">
    <input type="submit">

  my $content = '';
    use Apache2::Upload;

    my $req = Apache2::Request->new($r);
    my $upload = $req->upload("file");
    my $size = $upload->size;


But when I try it in the browser it reply me "End of file found".

I read that I needed change MasonArgsMethod 
<> to "CGI", but it change nothing.


View raw message