[Solved] Nextcloud with Docker as in example (max file size upload)


I have setup nextcloud with nginx, letscrypt, collabora similar to the example @ https://github.com/nextcloud/docker/tree/master/.examples

I notice when uploading files in WebUI it limited to what I think is 1 MB.

How can I change/increase that?

I have setup nextcloud + collabora as described here: Cannot get nextcloud => Collabora to work (docker)

Using nextcloud-fpm + ngnix web server with the configuration from here https://github.com/nextcloud/docker/blob/master/.examples/nginx.conf
It has client_max_body_size 10G; configured

Nextcloud has 511 MB set.

Any ideas?


Of course I have not set the client_max_body_size on the proxy and that limited it :slight_smile:

I know it’s been 2 years since this message but I’m facing the same issue and I was wondering how did you solve it? I have my nextcloud behind an nginx server both are running as docker containers. I managed to increase the upload size theoretically (the increased size is showed in admin web interface) by editing .htaccess and .user.ini files but in practice I still can not upload any file more than 1MB. I get “an unknown error occurred”!!

as far as i know nginx ignores .htaccess and .user.ini. these are apache files.

you have to map your config files into the container.

two for nginx

and one for php into nextcloud fpm

(hope you get the idea although it’s ansible. the three file you’ll find in the folder files and/or templates.)

See here for some ideas: