added utility function for uploading a file to a given ftp server