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-
In reply to image uploading in windows by olly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |