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
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
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
Forgive my poor perl and understanding of how this works!
I'm trying to grab images from a form, using libapreq2,
and I'm seeing this error :
[Sun Nov 07 10:52:34 2004] [error] Can't locate object method "upload"
via package "Apache::RequestRec" at /home/benfab/lib/BF.pm line 135.\n
I've a library