Next 16.0.1 where in setup of max file size upload

In Next cloud 16.0.1 there is no max file size uploader please help


This has to be configured in your PHP config, like /etc/php/php.ini.
In earlier versions NC shipped the setting for the max upload size in the .user.ini in the NC directory. Unfortunately you had to change the max upload size after every NC update, because it was reset by overwriting the whole NC directory after an update. I guess that’s the reason they let the admins set this up globally now.

Can you give the example file content of this /etc/php/php.ini. I’m also facing difficulty changing the php memory limit and upload max size configuration.

## PHP
Version: *7.2.17*
Memory Limit: *128 MB*
Max Execution Time: *3600*
Upload max size: *2 MB*`Preformatted text`

The php.ini is a pretty big file. Here are the relevant entries. You should search for them and only edit those two.
Remember that changes to these parameters is global for all PHP applications then:

; Maximum allowed size for uploaded files.
upload_max_filesize = 20G

; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
post_max_size = 20G

Alternatively you can also edit the .user.ini in the nextcloud installation directory. Keep in mind however, that this file will be overwritten with the next update again.

Doesn’t allow me to edit these files.
Even as root(owner) says file is read-only.

I’m new to Ubuntu and have a snap nextcloud install. Are you able to advise step by step on how to do this?