Details
-
Improvement
-
Resolution: Fixed
-
Major
-
1.5 RC1
-
None
Description
I propose making this function public
protected XWikiAttachment addAttachment(String fileName, byte[] data) throws XWikiException
This function allows to easily add a new attachment to a page. It doesn't save the document however...
So we would need to decide if the public version of this function adds or not a call to getDoc().save()