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

Simple suggestion to store attachments and its revisions in the filesystem

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • None
    • 2.5
    • {Unused} Core
    • None
    • Attachment Version File
    • Unknown

    Description

      I changed somethings in our XWiki source and now I want to make a component or something like it to share with all of you, possibly including it in the official source code.

      This is a simple way to store every attachment (including its revisions) in the filesystem, not in the database (able to customize the storage folder in xwiki.cfg).

      This solution doesn't handle the memory limitations like the discussion in http://markmail.org/thread/mssfaegyytakua7w , but instead is a simple way to change the DB store to Filesystem store.

      I know this is not the best way to do this, because the original hibernate store would be lost. Anyway, I think you could do something like the LDAP Authenticator (using the xwiki.authentication.authclass key in xwiki.cfg). What do you think?

      To use this approach, just overwrite the original files and set the "xwiki.store.attachment.path" in "xwiki.cfg", e.g: "xwiki.store.attachment.path=c:/xwiki/attachments".

      Best regards!

      Felipe Giotto.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              felipegiotto Felipe Giotto
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: