Geoffrey Young wrote:
>
> the documentation in Apache::Request is pretty complete. I've only tested
> Apache::Upload and don't use it in production (because I don't need to
> support uploads) but you can start your script like this:
>
> use strict;
> my $r = Apache::Request->new(shift);
> my $upload = $r->upload;
>
> now you have an Apache::Upload object. use the various methods on $upload
> as are in the docs. for instance, the perldoc shows you how to get back a
> filehandle that you can use to read the file:
>
> my $fh = $upload->fh;
> my $lines = 0;
> while(<$fh>) {
> ++$lines;
> ...
> }
>
> HTH
>
> --Geoff
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 28, 2000 3:31 PM
> > To: Geoffrey Young
> > Cc: 'Casey Bristow'; [EMAIL PROTECTED]
> > Subject: Re: Apache::Upload ?
> >
> >
> > i to need an upload solution
> >
> > to get Apache::Request::upload in i just
> > cpan'd it down as
> > install Bundle::Apache
> > there was quite a few dependencies
> > that it needed
> >
> > i then restarted apache
> >
> > and perl-status had it in there
> >
> > now my question is does anyone have a example script using this upload
> > feature?
> >
> > i saw some snippets in perldoc Apache::Request
> > that are quite usable
> > but if someone has an example
> > it would simply save me some time!
> >
> > thanks
> >
hmm , ive been try for the last while based on your suggestions and the
preldoc man
here are the files ive been using
can you tell me whats wrong?
PerlRun: `Can't locate object method "new" via package "Apache::Request"
at /home/www/perl/uploadstuff.pl line 8.
is what i get
Title: uploadtest
uploadtest
Last modified: Wed Jun 28 14:31:10 PDT 2000
uploadstuff.pl