code: public void setUploadVariant(String uploadVariant) {
  
          UploadVariant upload = null;
          try {
              upload = UploadVariant.valueOf(uploadVariant);
          } catch (Exception e) {
              // may happen, set default
              if (upload == null) {
                  upload = OpenCms.getWorkplaceManager().getDefaultUserSettings().getUploadVariant();
              }
              if (upload == null) {
                  upload = UploadVariant.gwt;
              }
          }
          setUploadVariant(upload);
      }
docs: Sets the upload variant.<p>
  
  @param uploadVariant the upload variant as String