httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: Status of uploads in 2.05-dev?
Date Sat, 16 Apr 2005 20:05:52 GMT
Andy Grundman <andy@hybridized.org> writes:

> Although nothing appears to have changed on my end, both upload fields
> appear to now be working for some reason(?!)  However, the param_class
> error is still occurring.

Hmm, see if this patch (against the multi-env branch)
helps with the param_class error:

Index: glue/perl/lib/Apache2/Upload.pm
===================================================================
--- glue/perl/lib/Apache2/Upload.pm	(revision 161540)
+++ glue/perl/lib/Apache2/Upload.pm	(working copy)
@@ -7,11 +7,10 @@
 }
 sub Apache2::Request::upload {
     my $req = shift;
-    my $body = $req->body;
+    my $body = $req->body or return;
     $body->param_class(__PACKAGE__);
-    my @uploads;
     if (@_) {
-        @uploads = grep $_->upload, $body->get(@_);
+        my @uploads = grep $_->upload, $body->get(@_);
         return wantarray ? @uploads : $uploads[0];
     }
 

-- 
Joe Schaefer


Mime
View raw message