FTP upload script with success check