Re: [mp2] can't locate object method "upload" via package "Apache::RequestRec"

2004-11-07 Thread Tom Schindl
Carl Brewer wrote: Tom Schindl wrote: Carl Brewer wrote: sub get_uploaded_image { my ($name, $max_size, $r) = @_; use Apache::Upload; my $req = Apache::Request->new($r); Apache::Request->instance($r) just use Apache::Request->instance($r) and you're save but you definately need to do that

Re: [mp2] can't locate object method "upload" via package "Apache::RequestRec"

2004-11-06 Thread Carl Brewer
Tom Schindl wrote: Carl Brewer wrote: sub get_uploaded_image { my ($name, $max_size, $r) = @_; use Apache::Upload; my $req = Apache::Request->new($r); my $upload = $req->upload($name); I've got that in my subroutine and it works, but I'm concerned that I'm dipping into the buckets too much

Re: [mp2] can't locate object method "upload" via package "Apache::RequestRec"

2004-11-06 Thread Tom Schindl
Carl Brewer wrote: sub get_uploaded_image { my ($name, $max_size, $r) = @_; use Apache::Upload; my $req = Apache::Request->new($r); my $upload = $req->upload($name); my $upload = $r->upload($name); print STDERR $upload->filename(); } They're pretty crude, but hash_post does what