in reply to Problem with CGI::Upload using IIS v5.1

open(OFH, ">$abfile") or die ...; > binmode(OFH); while ( read($fh, $data, 1024) ) {
Unless you do this, the bits you upload are going to get mangled by newline conversion.