This is fixed for me now. I got the latest stuff from cvs and
the list context array returns just the fields that are upload
fields.
Thanks SO much!
ken.
On 11 Apr 2004 at 20:51, Joe Schaefer <[EMAIL PROTECTED] wrote:
> Any news? Happy Easter.
>
> ken.
>
> On 8 Apr 2004 at 13:22, Joe Scha
"Ken Burcham" <[EMAIL PROTECTED]> writes:
[...]
> foreach my $key (keys %{$uploads})
> {
>warn "Uploader found $key";
>
>my $upload = $uploads->{$key};
>
>warn "Found $upload->filename";
>
> }
[...]
> But nothing else as if my foreach finds nothing... What am I
> mi
I tried as you suggested and here's what I have:
my $q = Apache::Request->new($r);
my $uploads = $q->upload;
my @arrayups = $q->upload;
warn "There's an array of scalars: ". scalar @arrayups;
warn "and I have a table ref: ".$uploads;
foreach my $key (keys %{$uploads})
{
warn "Uploader
"Ken Burcham" <[EMAIL PROTECTED]> writes:
> Ok, I might be on to something...
>
> I think the segfault is coming when I call 'upload' with a non-
> upload field... But since calling 'upload' without a name
> returns to me a list of variable names that include non-upload
> fields, iterating thr
Ok, I might be on to something...
I think the segfault is coming when I call 'upload' with a non-
upload field... But since calling 'upload' without a name
returns to me a list of variable names that include non-upload
fields, iterating through guarantees me to segfault:
(NOTE: resourceur
Joe: Thanks so much for taking the time to answer...
I'll look into the segfault backtrace next...
When I do this:
my $q = Apache::Request->new($r);
my @uploads = $q->upload;
warn 'Number of uploads: '. scalar @uploads;
foreach my $uploadfilename (@$uploads)
{
#my $upload = $q->upload
"Ken Burcham" <[EMAIL PROTECTED]> writes:
> > That's certainly supposed to work, assuming 'somefilename' is
> > the name of the upload widget in your HTML form. Can you post
> > a backtrace for the segfault?
>
> Sure... umm... how do I do that? :)
>
> I'm still pretty new to perl.
Segfaults
> That's certainly supposed to work, assuming 'somefilename' is
> the name of the upload widget in your HTML form. Can you post
> a backtrace for the segfault?
Sure... umm... how do I do that? :)
I'm still pretty new to perl.
>
> That is correct. In apache1 the uploads formed a linked
"Ken Burcham" <[EMAIL PROTECTED]> writes:
> I've been reading and trying things all day to no avail which
> usually means I'm doing something stupid. I have a perl apache
> module running under Apache 2.0.48/Mod_perl
> 1.99_13/libapreq2.02_02 and I'm trying to take a file upload.
>
> I'
Guruiers,
I've been reading and trying things all day to no avail which
usually means I'm doing something stupid. I have a perl apache
module running under Apache 2.0.48/Mod_perl
1.99_13/libapreq2.02_02 and I'm trying to take a file upload.
I'm getting a segfault whenever I call $r
10 matches
Mail list logo