http://www.perlmonks.org?node_id=250111


in reply to Binary file upload truncation?

One small suggestion : one thing to check is to make sure you've called the binmode function before you being doing IO on the file data.