I have files on two different servers. The script is situated on original server, the file I am receiving on 'site.com'. I can view the situation on both servers using an ftp client. I start with no file on original server then run the script. I then take a look on the original server and find the file has been created, but that it is empty.
If thre's a step that I am missing (I used the Cookbook as a basis for this) I'd be grateful for the help.
The file I'm trying to transfer is definitely not empty. But there is something more peculiar - I changed the filename to pick up another file in that directory as a check - and it transferred it without a problem!!
As I mentioned I definitely am getting the correct file from the server because if I change the name it causes an error. Why it will pick up one file but not another is something very strange...