How to start ftp upload on completion of download

I need to do a multiple ftp transfer of a file. The file has to be downloaded using smartftp from a remote server. On completion of download I would need to rename the file name and upload the file to another remote server in the network. Is this possible ? 

Take a look at the client SDK:
https://www.smartftp.com/client/features/sdk