How to increase file upload size (.user.ini is readonly?)

I am running AIO that I just instlled (latest version).
My sync is erroring saying ā€œThere is insufficient space available on the server for some uploadā€ The drive where Nextcloud and itā€™s data directory are is only 4% full, so the space on the hard drive is not the issue.

I did a google and maybe itā€™s the file upload size thatā€™s the issue?
This right here:

Says to edit .user.ini file. Iā€™m assuming itā€™s on the nextcloud-aio-apache container?
So I go into the container as root (tried not as root also didnā€™t work), do vi /pathtoinifile/.user.ini, update it but it wonā€™t save because itā€™s read-only.

What do?

Hi, in nextcloud with apache2 webserver:

sudo nano /etc/php/8.x/apache2/php.ini

search for 'upload_max_filesize=xxG

replace ā€˜xā€™ with your value
ctl+o enter

sudo service apache2 restart

hopefully it helps

How to increase file upload size

Hi, @Anastasia , see GitHub - nextcloud/all-in-one: šŸ“¦ The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.

It told me ā€œsudoā€ was an unknown command. lol. Thatā€™s why I remoted in as root directly. And it was still read only, even when trying to edit as root.

Thanks, szaimen. Question: ā€œBy default, public uploads to Nextcloud are limited to a max of 16Gā€ is this talking about each single file being 16g max or the subtotal of all files uploaded being max 16G?

It is talking about each single file

1 Like

Ok, thanks. Itā€™s actually looking like my partitions arenā€™t allocated correctly, so it might ACTUALLY be out of spaceā€¦ :eyes:
lol I love ChatGPT. It speaks my language:

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.