In a nutshell: I have a module that is using the php ftp commands for download and upload. The download works fine and the upload worked fine for a small text file. As I started using larger files, the upload completed without error but it only copied a small part of the file then stopped. I tried this for a 1k gif file and I was able to display the resulting file but it only had the first few lines of the original file.
In case it matters, I am running this from my local Windows machine accessing an internet server for both the download and the upload.
I have fairly large timeouts for the module and on the ftp_connect. I have tried it with and without passive mode and as ASCII and BINARY.