- public String uploadImage(Node parentNode, String fileName, InputStream in) throws RepositoryException;
+ public String uploadImage(Node context, Node uploadFolder, String fileName, InputStream in, String contentType)
+ throws RepositoryException;
+
+ @Deprecated
+ default String uploadImage(Node uploadFolder, String fileName, InputStream in) throws RepositoryException {
+ System.err.println("Context must be provided to " + CmsImageManager.class.getName());
+ return uploadImage(null, uploadFolder, fileName, in, null);
+ }