Changes for page Increasing XWiki attachment size limit
Last modified by Alexandru Pentilescu on 2023/01/08 13:30
From version 8.1
edited by Alexandru Pentilescu
on 2023/01/08 12:41
on 2023/01/08 12:41
Change comment:
There is no comment for this version
To version 11.1
edited by Alexandru Pentilescu
on 2023/01/08 13:30
on 2023/01/08 13:30
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
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, makesure that nginx willallowfor largeruploadsonyourspecificserver.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 ... ... @@ -49,6 +49,15 @@ 49 49 In the screenshot below, I set it to 4 GB. 50 50 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! 52 52 ))) 53 53 54 54 (% class="col-xs-12 col-sm-4" %)