FTP Upload. Need Help

Here is a sample passive FTP client sketch:

It will either upload from the FTP server to the SD card, or download from the SD card to the FTP server, depending on "#define FTPWRITE".