Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2549

Make Document.addAttachment public

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.7
    • 1.5 RC1
    • {Unused} Core
    • 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()

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: