I just started using HTML::Mason with mod_perl to build cgi apps, but am having a problem getting file uploads to work. From what I read, I need to get the Apache::Upload object from the Apache::Request object. Then I can get then filename and file handle from the upload object.
My problem lies in this line:
The error I get is:
Can't locate object method "upload" via package "Apache::RequestRec"
What is Apache::RequestRec, and isn't $r supposed to be the Apache::Request object? And am I even going about this the right way?
My problem lies in this line:
Code:
my $upload = $r->upload
Can't locate object method "upload" via package "Apache::RequestRec"
What is Apache::RequestRec, and isn't $r supposed to be the Apache::Request object? And am I even going about this the right way?