Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am using strict and warnings and taint. Also using CGI and the object name is $INPUT.my $fhx = $INPUT->upload('file_name'); my ($Bytes, $Buffer); open OUTPUT, '>'."/home/gambler_add/adpics/testing.gif" or die "Ca +n't open: $!"; while ($Bytes = read($fhx, $Buffer,1024)) { print OUTPUT $Buffer; } close OUTPUT or die "Can't close: $!"; #After this coding, I have more coding that adds form values into a db +.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: uploading a image file
by svenXY (Deacon) on Oct 20, 2005 at 10:02 UTC | |
|
Re: uploading a image file
by archen (Pilgrim) on Oct 20, 2005 at 15:53 UTC | |
|
Re: uploading a image file
by Anonymous Monk on Oct 20, 2005 at 07:04 UTC |