Details
-
Improvement
-
Resolution: Duplicate
-
Major
-
None
-
2.5
-
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
- duplicates
-
XWIKI-5942 Introduce new filesystem based attachment storage.
- Closed