diff --git a/en_US/howto/1-change.mail.attachment.size.md b/en_US/howto/1-change.mail.attachment.size.md index 0b33b76e..f4c82a86 100644 --- a/en_US/howto/1-change.mail.attachment.size.md +++ b/en_US/howto/1-change.mail.attachment.size.md @@ -90,3 +90,22 @@ http { client_max_body_size 100m; ... } +``` + +## Change upload file size in SOGo-3.x + +SOGo-3.x introduces parameter `WOMaxUploadSize` to limit upload file size, you +can add it in SOGo config file `/etc/sogo/sogo.conf` with a proper attachment +size. + +``` +// set the maximum allowed size for content being sent to SOGo using a PUT or +// a POST call. This can also limit the file attachment size being uploaded +// to SOGo when composing a mail. +// +// - The value is in kilobyte. +// - By default, the value is 0, or disabled so no limit will be set. +WOMaxUploadSize = 102400; +``` + +Restarting SOGo service is required. diff --git a/html/change.mail.attachment.size-zh_CN.html b/html/change.mail.attachment.size-zh_CN.html index 480a7596..9c50301e 100644 --- a/html/change.mail.attachment.size-zh_CN.html +++ b/html/change.mail.attachment.size-zh_CN.html @@ -28,7 +28,8 @@
重启 Apache 或 php-fpm 服务以使上述修改生效。
-在配置文件 /etc/nginx/nginx.conf
中找到参数 client_max_body_size
,按需要修改大小:
``` -http { +
http {
...
client_max_body_size 100m;
...
-}All documents are available in BitBucket repository, and published under Creative Commons license. You can download the latest version for offline reading. If you found something wrong, please do contact us to fix it.