[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    "End of file found"
From:       Javier Gracia Tabuenca <jgracia () etsetb ! upc ! edu>
Date:       2006-06-26 9:23:57
Message-ID: 449FA7AD.4020003 () etsetb ! upc ! edu
[Download RAW message or body]

hi.

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:

<%args>
     $fitxer => undef
</%args>

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

<%init>
 my $content = '';
 if($fitxer){
   use Apache2::Upload;

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

   $upload->slurp($content);
       }
</%init>

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

I read that I needed change MasonArgsMethod 
<http://www.masonhq.com/?MasonArgsMethod> to "CGI", but it change nothing.

thanks.





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic