Skip to content

Commit 01fa738

Browse files
authored
Merge pull request #58728 from nextcloud/jtr/docs-config-part-file-in-storage-non-chunking
docs(config): `part_file_in_storage` only applies to non-chunked
2 parents b40d230 + f3ceded commit 01fa738

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

config/config.sample.php

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,12 +2473,24 @@
24732473
'filesystem_check_changes' => 0,
24742474

24752475
/**
2476-
* Store part files created during upload in the same storage as the upload
2477-
* target. Setting this to false stores part files in the root of the user's
2478-
* folder, which may be necessary for external storage with limited rename
2479-
* capabilities.
2476+
* Control where temporary ".part" files are written during direct (non-chunked)
2477+
* uploads.
24802478
*
2481-
* Defaults to ``true``
2479+
* While an upload is in progress, Nextcloud writes data to a temporary ".part"
2480+
* file and renames it to the final filename when the upload completes.
2481+
*
2482+
* - true: create the temporary ".part" file in the destination storage/path.
2483+
* This typically avoids cross-storage moves and can improve reliability and
2484+
* performance on backends where rename within the same storage is cheap/atomic.
2485+
* - false: create the temporary ".part" file in the user's root folder first.
2486+
* This may help with some external storages that have limited rename/move
2487+
* behavior, but can add extra copy/move overhead.
2488+
*
2489+
* Note: This setting applies to direct (non-chunked) uploads only. Chunked/
2490+
* resumable uploads use a separate uploads staging mechanism and are not
2491+
* controlled by this option.
2492+
*
2493+
* Defaults to ``true``.
24822494
*/
24832495
'part_file_in_storage' => true,
24842496

0 commit comments

Comments
 (0)