Documentation inconsistency - how to set chunk size?

The link Uploading big files > 512MB — Nextcloud latest Administration Manual latest documentation shows:


Adjust chunk size on Nextcloud side

For upload performance improvements in environments with high upload bandwidth, the server’s upload chunk size may be adjusted:

sudo -u www-data php occ config:app:set files max_chunk_size --value 20971520

but Configuration Parameters — Nextcloud latest Administration Manual latest documentation shows:


files.chunked_upload.max_size

'files.chunked_upload.max_size' => 100 * 1024 * 1024,

So which one is it? Or are both valid and what happens if you set them to different valus?

Basically what do I actually have to set when I want to set the chunk size for uploads on the server?

1 Like

Your reading the docs for the upcoming v31 release. There are some changes happening for a new generation of chunk handling across the clients. That second config value is part of that.

The max_chunk_size is an older parameter that adjusts the max chunk size for the Web client. It’s the only parameter that you’ll find active in any published release.

Basically what do I actually have to set when I want to set the chunk size for uploads on the server?

In published releases, the chunk size is set on the clients themselves.

1 Like

Thanks.

I suppose you mean all clients, except the web client. If you really mean all clients including the web client, the parameter is obsolete and not used no matter what and the parameter should be removed from the documentation.

In fact the documentation should include your info by default.

The upcoming release 31 sounds like it might finally solve the upload problem for me - am I to understand that the new release will force clients to use a specified chunk size?

Right now, unless I want to set nginx’s client_max_body_size to (frankly) nutty values, I have to also force all the clients (linux desktop, web, android client) to use a value below client_max_body_size. This would be fine - except that I can’t find any way to set the web or android clients chunk size.

Is there any “wisdom from on high” that the NC royalty feel like bestowing on us?