Update client.cpp

fixed a upload bug