ftp connect thread box & upload function