Changes for page Attachments

Last modified by Thomas Mortagne on 2023/10/10

From version 4.1
edited by Caleb James DeLisle
on 2011/04/18
Change comment: don't link to broken page in playground
To version 6.1
edited by Caleb James DeLisle
on 2011/04/18
Change comment: corrected a typo and mentioned max_allowed_packet

Summary

Details

Page properties
Content
... ... @@ -1,8 +1,10 @@
1 +{{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}}
2 +
1 1  Attachments can be uploaded either through the regular [[upload action>>platform:Features.Attachments]], [[platform:Features.WebDAV]], [[platform:Features.XMLRPC]] or [[Rest>>platform:Features.XWikiRESTfulAPI]].
2 2  As an administrator you can set limits on the maximum size of an attachment and where the attachments will be stored.
3 3  
4 4  = Size Limit =
5 -The maximum size of an attachment is limited by a a configuration parameter in XWikiPreferences document. It is set to about 10MB by default.
7 +The maximum size of an attachment is limited by a configuration parameter in XWikiPreferences document. It is set to about 10MB by default.
6 6  To change it:
7 7  1. Go to <yourwiki>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object
8 8  2. Click on the line that says ##XWikiPreferences 0## (right below the line that says ##Objects of type XWiki.XWikiPreferences (1)##)
... ... @@ -29,6 +29,7 @@
29 29  
30 30  == Database Attachment Store (Default) ==
31 31  This attachment storage mechanism stores your attachments in database entries in the [[xwikiattachment_content>>platform:DevGuide.DsXWikiAttachmentContent]], [[xwikiattachment_archive>>platform:DevGuide.XWikiAttachmentArchive]], and [[xwikiattrecyclebin>>platform:DevGuide.DsXwikiRecycleBin]] tables. This system allows for easy backup of your attachments by dumping the database and keeps all of your data together but attachment size is memory constrained since the attachment content and archive must all be held in memory. As a general rule, attachments larger than 30MB are not possible.
34 +**Note:** When using this attachment store with a MySQL database, you must set the ##max_allowed_packet## to about 3 times the size of your largest attachment since the attachment and it's version history must be saved. See [[platform:AdminGuide.InstallationMySQL]] for more information.
32 32  
33 33  == Filesystem Attachment Store (Since XWiki Enterprise 3.0M2) ==
34 34  
... ... @@ -56,7 +56,7 @@
56 56  
57 57  Also make sure they are not commented out.
58 58  
59 -=== Users who already have a running wiki and want to switch to Filesystem Attachment Store ===
62 +=== Users who already have a running wiki ===
60 60  If you already have a wiki and want to take advantage of the Filesystem Attachment Store, you should use the [[extensions:Extension.Filesystem Attachment Porter]] to move your existing attachments onto the filesystem.
61 61  
62 62  === Other considerations ===

Get Connected