move genericupload.go to RPC model