Skip to content

Commit c7c0d29

Browse files
authored
Merge pull request #12516 from nextcloud/fix/max-chunk-size
docs(admin): Document change of `max_chunk_size`
2 parents aad39dd + 7d5d1a0 commit c7c0d29

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

admin_manual/configuration_files/big_file_upload_configuration.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,18 @@ low. This setting needs to be configured to at least the time (in seconds) that
152152
the longest upload will take. If unsure remove this completely from your
153153
configuration to reset it to the default shown in the ``config.sample.php``.
154154

155+
.. _files_configure_max_chunk_size:
155156

156157
Adjust chunk size on Nextcloud side
157158
-----------------------------------
158159

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

161-
sudo -u www-data php occ config:app:set files max_chunk_size --value 20971520
162+
sudo -u www-data php occ config:system:set --type int --value 20971520 files.chunked_upload.max_size
162163

163164
Put in a value in bytes (in this example, 20MB). Set ``--value 0`` for no chunking at all.
164165

165-
Default is 10485760 (10 MiB).
166+
Default is ``104857600`` (100 MiB).
166167

167168
.. note:: Changing ``max_chunk_size`` will not have any performance impact on files uploaded through File Drop shares as unauthenticated file uploads are not chunked.
168169

admin_manual/release_notes/upgrade_to_31.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,20 @@ System requirements
1111
PHP configuration
1212
-----------------
1313

14-
We have a new setup warning to check if the memory reserved for APCu is high enough. If you see this warning, you should increase the memory reserved for APCu. You can do this by increasing the value of the ``apc.shm_size`` directive in your ``php.ini`` file. It is generally advised to review this value and increase it if necessary depending on your instance size.
14+
We have a new setup warning to check if the memory reserved for APCu is high enough.
15+
If you see this warning, you should increase the memory reserved for APCu.
16+
You can do this by increasing the value of the ``apc.shm_size`` directive in your ``php.ini`` file.
17+
It is generally advised to review this value and increase it if necessary depending on your instance size.
18+
19+
Nextcloud configuration
20+
-----------------------
21+
22+
Maximum chunk size
23+
^^^^^^^^^^^^^^^^^^
24+
25+
We have adjusted the default maximum chunk size for big file uploading.
26+
Previously it was set to 10MiB, it is now increased to 100MiB.
27+
28+
Also the configuration was moved from an app configuration to the system configuration (``config.php``).
29+
If you set up a custom value previously the value will be automatically migrated to the system configuration during the update.
30+
But if you need to set a new custom value you need now to use the system configuration, see also :ref:`files_configure_max_chunk_size`.

0 commit comments

Comments
 (0)