rm upload func