jupe has asked for the wisdom of the Perl Monks concerning the following question:
what kind of crack am i smoking here? (i also have data::dumper's of the offending cgi objects if that would help)my $file = $cgi->param('file'); select((select($file), $|=1)[0]); my $tempFile; while(<$file>) { $tempFile .= $_; } close($file); mkdir("/var/www/html/pmuze/upload/$username"); open(LOCAL, ">/var/www/html/pmuze/upload/$username/$fileName") or warn + $!; select((select(LOCAL), $|=1)[0]); binmode(LOCAL); print LOCAL $tempFile; close(LOCAL);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI File Upload Problems
by chromatic (Archbishop) on Apr 04, 2007 at 02:48 UTC | |
by jupe (Beadle) on Apr 04, 2007 at 03:09 UTC | |
|
Re: CGI File Upload Problems
by Ovid (Cardinal) on Apr 04, 2007 at 08:31 UTC | |
by jupe (Beadle) on Apr 04, 2007 at 19:12 UTC | |
by jupe (Beadle) on Apr 04, 2007 at 18:51 UTC | |
|
Re: CGI File Upload Problems
by randyk (Parson) on Apr 04, 2007 at 04:44 UTC | |
by jupe (Beadle) on Apr 04, 2007 at 19:03 UTC | |
|
Re: CGI File Upload Problems
by varian (Chaplain) on Apr 04, 2007 at 07:16 UTC | |
|
Re: CGI File Upload Problems
by jupe (Beadle) on Apr 04, 2007 at 03:20 UTC |