Ogden wrote: > use Apache2::Upload; # the docs missed the '2' above > my $upload = $r->upload; > my $upload_fh = $upload->fh; > > But I get this error: > > Can't locate object method "fh" via package "APR::Request::Param::Table" > at > > Any clues as to how to get this going or is using Apache2::Request too > risky? > >
Take a look into "perldoc Apache2::Request": $req->upload() $req->upload($name) Requires "Apache2::Upload". With no arguments, this method returns an APR::Request::Param::Table object in scalar con- text, or the names of all Apache2::Upload objects in list context. An optional name parameter can be passed to return the Apache2::Upload object associated with the given name: my $upload = $req->upload($name); More generally, "upload()" follows the same pattern as "param()" with respect to its return values and argument list. The main difference is that its returned values are Apache2::Upload object refs, not simple scalars. I think your code would work if you give the name of the HTML-Upload-Field as first parameter to the upload method: my $upload = $req->upload($NameOfUploadField); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users