httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Wichitill <ma...@gmx.de>
Subject Re: Problem use Apache::Upload
Date Fri, 30 Jul 2004 12:02:05 GMT
Keith C. Perry wrote:
> use Apache::Upload;
> use strict;
> 
> my $r=Apache->request;
> my $req = Apache::Request->new($r);
> my $upload = $req->upload();
> my $fname  = $upload->filename();
> my $io = $upload->io();
> $r->print while <$io>;
> 
> I get error like this for filename() in the server error log...
> 
> [Fri Jul 30 02:25:54 2004] [error] Can't locate object method "filename" via
> package "Apache::Upload::Table" at /www/local/upload.mpl line 18.

If you want an Apache::Upload object, you need to pass a field name:
my $upload = $req->upload('foo');

http://cvs.apache.org/~joes/libapreq2-2.04-dev/docs/html/group__apreq__xs__request.html#upload

Mime
View raw message