Hello... I'm having a problem with CGI.PM upload function:
--------
$image = $q->param('image');
open(IMGFL,">$imageloc");
while ($bytesread=read($image,$buffer,1024)){
print IMGFL $buffer;
}
close(IMGFL);
--------
Binary files are broken ... it looks like it is uploading in text mode (i noticed this with images)
ideas?
--------
$image = $q->param('image');
open(IMGFL,">$imageloc");
while ($bytesread=read($image,$buffer,1024)){
print IMGFL $buffer;
}
close(IMGFL);
--------
Binary files are broken ... it looks like it is uploading in text mode (i noticed this with images)
ideas?