added copying file from temp to local and then to ftp