use CGI; my $query = new CGI; my $fh = $query->upload('uploaded_file'); open OUT, ">/home/foo/bar/baz.html" or die "Can't open: $!" while (<$fh>) { print OUT; } close OUT;
In reply to Re: Handling the POSTing of a file to a CGI script
by btrott
in thread Handling the POSTing of a file to a CGI script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |