docs: @Override
      InterfaceHttpData getData(HttpRequest request, HttpDataFactory factory) {
          MediaType mediaType = contentType;
          String contentType = mediaType.toString();
          String encoding = mediaType.isTextBased() ? null : "binary";
          Charset charset = mediaType.getCharset().orElse(null);
          FileUpload fileUpload = factory.createFileUpload(request, name, filename, contentType,
              encoding, charset, getLength());
          try {
              setContent(fileUpload);
          } catch (IOException e) {
              throw new IllegalArgumentException(e);
          }
          return fileUpload;
      }