olly has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to upload pictures with the following code
But then when I try to open the file after it is uploaded it gives me the error can't open file. Does anyone know what I am doing wrong?my $filename = make_filename(); my $fh = $q->upload("picture_location"); binmode(fh); open (OUT, ">$filename.jpg") || die "Can't open: $!"; while (<$fh>) { print OUT; } close OUT;
Imagination is more important then knowledge -Einstein-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re: image uploading in windows
by ar0n (Priest) on May 11, 2001 at 16:27 UTC | |
by olly (Scribe) on May 11, 2001 at 17:10 UTC | |
|
Re: image uploading in windows
by bjelli (Pilgrim) on May 11, 2001 at 17:59 UTC |