Well, I finally got it to work with Apache::Request. I had to do "$args =
Apache::Request->new($r);" and "$file = $args->upload;" in the handler sub
and then pass $args and $file to any other subs that needed it. Maybe this
is normal but if so I was unaware of it. I was doing all of the above
within a different sub that gets called from handler.
BTW, Can I do a conditional on the creation of $file that would return false
if there was no file uploaded???
> ----------
> From: Doug MacEachern[SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 01, 1999 1:36 PM
> To: Tubbs, Derric L
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: no luck uploading
>
> On Mon, 1 Nov 1999, Tubbs, Derric L wrote:
>
> > I've been trying to use the "file" input field to upload some files and
> I'm
> > having no luck at all. I first tried using Apache::Request with no luck
> and
> > the error message "Can't call method "filename" without a package or
> object
> > reference at ..." but I had in fact done a $args =
> Apache::Request->new($r)
> > and $file = Apache::Request->upload.
>
> I don't understand what you are trying to say, without seeing an example.
> try the libapreq-x.xx/eg/perl/file_upload.pl script
>