create file and upload it to ftp