joev has asked for the wisdom of the Perl Monks concerning the following question:
The documentation says that upload uses /tmp, /usr/tmp and then where the script is to write the temporary file that the filehandle links to.
I just don't see what I'm missing, this looks and seems pretty straight forward.
Thanks for any and all help
Joe
Code Snipet:
#!/usr/bin/perl -w use strict; use CGI; my $formdata = CGI->new; my $file = $formdata->param('file'); my $filename = $formdata->param('filename'); my $fh = $formdata->upload($file); print STDERR "$file\n"; print STDERR "$filename\n"; if (defined $fh){<br> print STDERR "\$fh is defined\n"; }
Apache Error Log:
test.jpg new_test.jpg [Sat Nov 1 17:49:29 2003] [error] [client 127.0.0.1] Premature end of + script headers: /var/www/cgi-bin/eface/clients.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Upload Question
by antirice (Priest) on Nov 02, 2003 at 00:03 UTC | |
by Anonymous Monk on Nov 02, 2003 at 02:07 UTC | |
by antirice (Priest) on Nov 02, 2003 at 03:05 UTC | |
by joev (Novice) on Nov 04, 2003 at 01:22 UTC | |
by antirice (Priest) on Nov 04, 2003 at 02:58 UTC | |
| |
|
Re: Upload Question
by jZed (Prior) on Nov 01, 2003 at 23:58 UTC | |
|
Re: Upload Question
by adrianh (Chancellor) on Nov 02, 2003 at 15:33 UTC |