I am trying to have a user upload an image and I am getting an undef
$apr-upload object.
Here is the code:
form method=post ENCTYPE=multipart/form-data action=/join
input type=hidden name=action value=upload
br
your picture (size limit: 30k)br
input type=file name=userpic size=20
p
input
Mike Melillo wrote:
I am trying to have a user upload an image and I am getting an undef
$apr-upload object.
[snip]
sub upload {
my ($r) = shift;
my $apr = Apache::Request-new($r);
my $status = $apr-parse;
you might want to check the status of that
Geoffrey Young wrote:
Mike Melillo wrote:
I am trying to have a user upload an image and I am getting an undef
$apr-upload object.
we have a working example that may be able to help you some:
http://www.modperlcookbook.org/code/ch03/Cookbook/PrintUploads.pm
also see the new