filename = r"c:\path\to\file"
the problem is ":" this one. idk why but ftp dont wanna this. change ":" something else it will be work. when you create a new file name. make sure the file name dosent contain ":" or special chars like that.