docs: public CmsResource uploadFile(String localfile, String folder, String filename, String type)
      throws Exception, CmsIllegalArgumentException {
  
          I_CmsResourceType t = OpenCms.getResourceManager().getResourceType(type);
          return m_cms.createResource(folder + filename, t, CmsFileUtil.readFile(new File(localfile)), null);
      }