Nextcloud 18 update: upload_max_filesize 2 MB
Since the update to nc 18 the upload and post max size is decreased to 2MB.
I can't find a way to set a larger filesize. Please help.
So, how can I limit user max upload size?
Is it also possible to change the execution time of php scripts via the custom php.ini. I work with slow disks and sometimes have problems with execution time.
Closed by #1379
You can add own file by volume all files from conf.d folders are loaded: in docker-compose.yml
- ./php.ini:/usr/local/etc/php/conf.d/zzz-custom.inior by the docker command
-v /path/to/your/php.ini:/usr/local/etc/php/conf.d/zzz-custom.iniAnd the file can look like:
upload_max_filesize=512M post_max_size=550M memory_limit=1Gthen restart the container and this should work
i was with that problem too and it worked to me
You can change de php-local.ini too
See here : https://discourse.linuxserver.io/t/nextcloud-27-1-1-cant-change-the-upload-max-filesize-php-8-2/8126
upload_max_filesize=512M post_max_size=550M memory_limit=1G
For those landing here, keep in mind this is a 4+ year old Issue and the information is outdated.
The reason it's closed is because native support was added for these parameters.
There is zero need to manually modify php.ini for them.
See the image's documentation. Specifically PHP Configuration.
If you are not using the AIO wrapper container image, but the base nextcloud docker container, use this:
services:
db:
...
redis:
...
app:
image: nextcloud:32-apache
restart: always
...
environment:
- PHP_MEMORY_LIMIT=1024M
- PHP_UPLOAD_LIMIT=1024M
Verify here if it was correctly applied: https://your.cloud.com/settings/admin/serverinfo