Last modified by Alexandru Pentilescu on 2023/01/08 13:30

From version 7.1
edited by Alexandru Pentilescu
on 2023/01/08 12:40
Change comment: Upload new image "Screenshot_20230108_143902.png", version 1.1
To version 11.1
edited by Alexandru Pentilescu
on 2023/01/08 13:30
Change comment: There is no comment for this version

Summary

Details

Page properties
Tags
... ... @@ -1,1 +1,1 @@
1 -guide
1 +technical guide
Content
... ... @@ -16,7 +16,7 @@
16 16  (((
17 17  = Steps =
18 18  
19 -First, make sure that nginx will allow for larger uploads on your specific server.
19 +The following are the steps you must take to change the limit.
20 20  
21 21  == Decide on a sensible limit for your needs ==
22 22  
... ... @@ -30,7 +30,7 @@
30 30  
31 31  Nginx has a default file upload limit of 1MB. Exceeding this will give you errors.
32 32  
33 -In order to accept larger uploads, you must first tweak the "client_max_body_size" parameter in the configuration. --Please visit this page for details on how to achieve this.-- (not yet written)
33 +In order to accept larger uploads, you must first tweak the "client_max_body_size" parameter in the configuration. Please visit [[this>>https://wiki.pentilescu.com/bin/view/Guides/Nginx%3A%20useful%20configuration%20directives#HChangemaximumuploadsizethatNGinxaccepts]] page for details on how to achieve this.
34 34  
35 35  == Change the XWiki upload size limit parameter ==
36 36  
... ... @@ -39,7 +39,6 @@
39 39  On this page, you should find a section called "XWikiPreferences 0", right under "Objects of type XWiki.XWikiPreferences (1)". These sections can be expanded by clicking on them, much like a collapsable tree structure. Expand the "XWikiPreferences 0" node by left clicking on it!
40 40  
41 41  [[image:Screenshot_20230108_142805.png]]
42 -)))
43 43  
44 44  Scroll down to "Maximum Upload Size" and enter a proper setting in that box! It's a text box that is initially empty, but can be set to contain natural numbers.
45 45  
... ... @@ -49,6 +49,18 @@
49 49  
50 50  In the screenshot below, I set it to 4 GB.
51 51  
51 +[[image:Screenshot_20230108_143902.png]]
52 +
53 +Please don't forget to click the "Save" or "Save & View" buttons at the end, otherwise your change will not be saved!
54 +I said at the beginning that I plan for my limit to be 2.5GB but here I set it to 4GB. Ultimately, it doesn't matter which it is, as long as there's a sensible limit set. Set it to whatever you feel comfortable for you.
55 +
56 += Footnote =
57 +That's it! You're done!
58 +Please note that you might still get an upload error when attaching large files in the future, but, this time, once you'll refresh the page, the file should be in the "Attachments" section of the page, this time, and you should be able to use it. The error is merely aesthetic, and will have no actual effects whatsoever.
59 +
60 +Happy coding!
61 +)))
62 +
52 52  (% class="col-xs-12 col-sm-4" %)
53 53  (((
54 54  {{box title="**Contents**"}}{{toc /}}{{/box}}