Hi,
I’m using the Community Edition of OnlyOffice DocSpace 3.1, installed via the official docspace-install.sh
script on Linux.
I noticed that the maximum upload size is limited to 1 GB.
I would like to ask if is there a way to increase this limit in the Community Edition?
Hello @Fralav
It is package installation, right? Can you let me know the version of DocSpace?
Hi,
yes, it is a package installation via docspace-install.sh script. The version is ONLYOFFICE DocSpace v.3.1.0
Thanks for the reply. Generally, the limit is set up in /etc/onlyoffice/docspace/appsettings.json config in parameter "max-upload-size"
. Once value is changed, you need to restart all DocSpace services with systemctl restart $(systemctl list-units --type=service --all | grep docspace- | awk '{print $1}')
to apply it. Let me know if it works for you.
Hi,
I tried to change max-upload-size (it was set to 5Mb and I set it to 4Gb) but nothing changed.
Then the only option is to modify the database value. Please make sure to prepare whole system backup before performing any changes in the database.
The steps are:
- Connect to the MySQL database with command
mysql -u root -p
and enter the password;
- Select necessary database with
use docspace
;
- Check tenant number with
select * from tenants_quota
;
- Update the value with following prompt (please make sure to change only the value in
file_size
parameter):
UPDATE tenants_quota
SET features = 'audit,ldap,sso,thirdparty,restore,oauth,contentsearch,file_size:102400,statistic'
WHERE tenant = -1;
- After changing the value, restart all DocSpace services again to apply the change.
Before running the query in step 4, make sure that tenant ID corresponds to the one you see after performing step 3.
If you struggle with password to your MySQL, then please refer to this reply: DocSpace Mysql credentials - #5 by Alexandre
I’m glad to help. Closing the topic as solved.