It depends on which application you are using for uploading files via FTP. Some of those applications can be scripted or support uploads with a single command line call. Then call such a script / command line from a batch (Windows) or shell (Linux) script, check the return value, and act accordingly (move file).
For
WinSCP this is well documented with examples:
Automate file transfers (or synchronization) to FTP server or SFTP server :: WinSCP[
^]. See there the last section
Checking script results for an example batch file where you only have to replace the
sendmail calls by
move
commands and use an appropriate
WinSCP script file as described also on that page.