in reply to Re: Reading CGI.pm file upload spools with Archive::Zip
in thread Reading CGI.pm file upload spools with Archive::Zip
But this is what I get for output:print "On file: $i\n<br>"; my $filename = $cgi->param("file1") or print "Cannot do that: $!\n"; print "Uploading . . ."; my $upload_filehandle = $cgi->upload("file$i") or print "cant upload: +$!\n"; print "done<br>\n"; print "Making zip . . ."; my $zip = Archive::Zip->new() or print "Canot make zippah: $!\n"; print "done<br>\n"; print "Reading Zip . . . "; my $status = $zip->readFromFilehandle($upload_filehandle); print "done<br>\n"; print "Mah Statuhs: $status\n"; $zip = undef unless ($status eq 'AZ_OK'); if(defined($zip)) { print $zip->members(); } else { print "Ooops something happened: $!\n"; }
Mungeing! On file: 1 Uploading . . .done Making zip . . .done Reading Zip . . .Dunno what's up there :-(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reading CGI.pm file upload spools with Archive::Zip
by siroskey (Initiate) on Sep 16, 2004 at 01:47 UTC |