aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-07-30 14:57:03 +0200
committerRobin Appelman <robin@icewind.nl>2025-08-01 16:22:38 +0200
commit7e48b3763e38b47a44ff231598d349ff4c761265 (patch)
tree3064eb0a77ad2617c6312073310515d7fd9fd621
parent170e7863396c56cbb44b915b2e08bb03d3ff261e (diff)
downloadnextcloud-server-s3-multipart-size-check.tar.gz
nextcloud-server-s3-multipart-size-check.zip
fix: fix check if we can use a part files3-multipart-size-check
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/dav/lib/Connector/Sabre/File.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php
index d2a71eb3e7b..89ab3fa0bc7 100644
--- a/apps/dav/lib/Connector/Sabre/File.php
+++ b/apps/dav/lib/Connector/Sabre/File.php
@@ -133,8 +133,12 @@ class File extends Node implements IFile {
$transferId = \rand();
// mark file as partial while uploading (ignored by the scanner)
$partFilePath = $this->getPartFileBasePath($this->path) . '.ocTransferId' . $transferId . '.part';
+ $partParentPath = dirname($partFilePath);
+ if ($partParentPath === '.') {
+ $partParentPath = '';
+ }
- if (!$view->isCreatable($partFilePath) && $view->isUpdatable($this->path)) {
+ if (!$view->isCreatable($partParentPath) && $view->isUpdatable($this->path)) {
$needsPartFile = false;
}
}