implemented uploadftp as well as uploadhttp