Raising nextcloud AIO file size limit in unraid docker

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud AIO v10.3.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • unraid version 6.12.3
  • Web server and version (e.g, Apache 2.4.25):
    • default apache, i think?
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • cloudflared tunnel,
  • PHP version (e.g, 8.3):
    • 8.3.15
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • upon instal
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO on an unraid NAS.
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • yes, cloudfare

Summary of the issue you are facing:

I’m setting up nextcloud primarily as a quick and easy selfhosted dropbox service with the goal to easily share medium-large(say up to 20G) files with friends and family. Having followed guides by spaceinvaderone I can access the service and upload/download smaller files just fine.

It seems the default limit is 512MB and I have been unsuccessful in figuring out how to change this. Documentation/guides/threads refer to various different files and fields that I cannot find, access, or even exist. Guides seem to be written primarily for other install setups. I’ve tried .htaccess edits, config.php edits, adding a variable in unraid docker GUI, but made no headway. I’m at the point where I think it’s something simple because of my lack of foundational knowledge.

Does anyone know/have a guide that details what I need to know/do specifically for my setup?

Hi godofal,

I don’t have instructions for your specific setup, but my first search result for “nextcloud max upload size” got this thread on Reddit from three years back

Since this person also wants to upload files of 20 GB, this story is such a good match that I am sure you already have seen that thread and must look for another solution. On the other hand, you did not mention which specific steps you already have undertaken, so it may help.

For future visitors I’ll post a copy here in case Reddits management becomes more awful than it is and the source is not available anymore:

Thanks to u/iams3cond i could make it work:

php → php-local.ini

upload_max_filesize = 20G post_max_size = 21G

nginx->site-confs->default

client_max_body_size 20G

1 Like

If the users you’re sharing with are logged in, chunking is used so it is mostly a non-issue (other than timeouts sometimes needing adjustments if you’re using an external reverse proxy).

If you’re sharing with users that are not-logged-in in <= v30, chunking is not supported so uploading large files will be more dependent on a variety of parameters throughout the end-to-end path.

If the currently in beta v31, chunking is supported for public uploads.

However, in your case, your biggest problem is probably this:

See AIO: Notes on Cloudflare (proxy/tunnel)

Cloudflare limits HTTP transactions to 100 MB.

3 Likes

Welp, that’ll be it. Thank you, I’ll start looking for alternatives.

editing for future googlers; setting the chunk limit to below cloudflare’s 100MB limit allow for logged in users to share bigger files. tested, works.
easy share links are still limited, supposedly below 100MB. tried a 500MB file and it just failed at the end.

in unraid GUI navigate to docker>edit nextcloud AIO>“add another path/port/variable/label/device”>select variable, enter a name to describe it, “PHP_UPLOAD_LIMIT” in key, your desired file size limit in “value” (i set it to 25G)
Do the same another time and make the key “maxChunkSize” with a value of “990000000” for 99MB.

This lets logged in users upload files up to 25GB, or whatever that specific user’s limit has been set to in nextcloud UI.

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