support uploads in rpc browser client