docker icon indicating copy to clipboard operation
docker copied to clipboard

Nextcloud 18 update: upload_max_filesize 2 MB

Open paderick opened this issue 6 years ago • 27 comments

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.

paderick avatar Feb 26 '20 21:02 paderick

So, how can I limit user max upload size?

wiltonsr avatar Nov 11 '20 23:11 wiltonsr

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.

the-unprepared avatar Feb 17 '21 17:02 the-unprepared

Closed by #1379

J0WI avatar Feb 19 '21 13:02 J0WI

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.ini

or by the docker command

-v /path/to/your/php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini

And the file can look like:

upload_max_filesize=512M
post_max_size=550M
memory_limit=1G

then restart the container and this should work

i was with that problem too and it worked to me

RSerejo avatar Aug 17 '24 15:08 RSerejo

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

StanislasJEANGEY avatar Dec 23 '24 22:12 StanislasJEANGEY

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.

joshtrichards avatar Jan 26 '25 00:01 joshtrichards

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

Sieboldianus avatar Apr 25 '26 04:04 Sieboldianus