code: private boolean upload(final UpToken upToken, File recordFile) {
          try {
              OkHttpClient client = getHttpClient();
              RequestBody reqBody = RequestBody.create(MediaType.parse("text/plain"), recordFile);
              Request request = new Request.Builder().url(serverURL).
                      addHeader("Authorization", "UpToken " + upToken.token).
                      addHeader("User-Agent", UserAgent.instance().getUa(upToken.accessKey)).
                      post(reqBody).build();
              Response res = client.newCall(request).execute();
              try {
                  return isOk(res);
              } finally {
                  try {
                      res.body().close();
                  } catch (Exception e) {
  
                  }
              }
          } catch (Exception e) {
              e.printStackTrace();
              return false;
          }
      }
docs: 同步上传