adding upload func ver1