What is the proper way to take the filehandle provided by $upload->fh and write the 
file to disk?  I seem to be having buffering
issues w/ the following (file is truncated):

if (open(OUTFILE, ">$u_fullpath")) {
        print OUTFILE $buffer while read($fh, $buffer, 8*1024);
} else {
        ...
}

a simple $| = 1; before the print didn't seem to help.. maybe OUTFILE is not hot?  
Dunno.. this is my first run in w/ buffering
issues.  I hope someone can help.

TIA

Ian

Reply via email to