Curl - Upload a file with FTP

curl -T uploadfilename -u username:password ftp://sitename.com/myfile

To copy to some other directory specify the directory after the site name;e.g.

curl -T uploadfilename -u username:password ftp://sitename.com/directory/myfile