Hi Jack,
This is what I do to get an uploaded file:
my $req = Apache2::Request -> new ($r);
my $upload = $req -> upload ('uploaddata');
my $size = $upload -> slurp ($contents);
Ray
Malloy wrote:
> Can't call method "fh" on an undefined value at /path/up line 7.
>
> What's wrong with it?
>
> *Please check the codes:*
>
> <%args>
> $upload => 0
> </%args>
> <%init>
> use Apache2::Upload;
> if ($upload) {
> my $fh = $r->upload('userfile')->fh;
> }
------------------------------------------------------------------------------
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users