code: @Deprecated
      public void canUploadVersion(String name, long fileSize, String parentID) {
          URL url = CONTENT_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID());
          BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "OPTIONS");
  
          JsonObject parent = new JsonObject();
          parent.add("id", parentID);
  
          JsonObject preflightInfo = new JsonObject();
          preflightInfo.add("parent", parent);
          if (name != null) {
              preflightInfo.add("name", name);
          }
  
          preflightInfo.add("size", fileSize);
  
          request.setBody(preflightInfo.toString());
          BoxAPIResponse response = request.send();
          response.disconnect();
      }
docs: Checks if the file can be successfully uploaded by using the preflight check.
  
  @param name     the name to give the uploaded file or null to use existing name.
  @param fileSize the size of the file used for account capacity calculations.
  @param parentID the ID of the parent folder that the new version is being uploaded to.
  @deprecated This method will be removed in future versions of the SDK; use canUploadVersion(String, long) instead