Last modified by Eleni Cojocariu on 2026/09/25 02:48

Show last authors
1 Raise or lower the largest file that may be attached to a Page, one of the limits [[Attachments>>doc:documentation.xs.admin.attachments.WebHome]] introduces, by editing the wiki preference ##upload_maxsize##, expressed **in bytes**, in the object editor.
2 1. Open the object editor of the wiki preferences.(((
3 {{code language="none"}}
4 http://<yourwiki>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object
5 {{/code}}
6 )))
7 1. Select the "XWikiPreferences 0" line, under "Objects of type XWiki.XWikiPreferences (1)". What follows the object number is the wiki's own title preference, so it reads differently on every wiki.(((
8 {{image reference="xwikipreferences-object-editor.png" size="large" alt="The XWikiPreferences 0 line under its class heading in the object editor"/}}
9 )))
10 1. Scroll down to "Maximum Upload Size" and replace the value with the number of bytes you want to allow.(((
11 {{image reference="maximum-upload-size-field.png" size="large" alt="The Maximum Upload Size field of the wiki preferences, holding the default of 107374182400 bytes"/}}
12 )))
13 1. Scroll to the bottom of the form and select "Save".
14 1. Attach a file larger than the new limit to any Page: the upload is refused, and the notice quotes the limit you have just set.(((
15 {{image reference="attachment-size-refused-notice.png" size="large" alt="The notice refusing an upload larger than the maximum attachment size"/}}
16 )))
17
18 XWiki reads this preference the way it reads a Page's other preferences, so the wiki is not the only level it can be set at: putting the same ##upload_maxsize## field on the ##WebPreferences## Page of a Page tree gives that tree a limit of its own, which is how one part of a wiki is allowed larger uploads than the rest. A subwiki inherits nothing from the main wiki here, so every wiki needs its own value.

Get Connected