fixed client to support file upload