summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-07-24 08:28:21 +0200
committerGitHub <noreply@github.com>2023-07-24 08:28:21 +0200
commit57b0bf316fc0a2b812c65872894ccdc91b069fd7 (patch)
treeb528176151122cfca1d1f4d0b3cb660b427a1ad5 /apps
parent9fa1b73b20a3286aa0574a8e84c7f360419d0796 (diff)
parentf537c7b5c67d88aecbc012fc19c38be52320a3c7 (diff)
downloadnextcloud-server-57b0bf316fc0a2b812c65872894ccdc91b069fd7.tar.gz
nextcloud-server-57b0bf316fc0a2b812c65872894ccdc91b069fd7.zip
Merge pull request #39459 from nextcloud/backport/26/objectstore-without-multipart
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Upload/ChunkingV2Plugin.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Upload/ChunkingV2Plugin.php b/apps/dav/lib/Upload/ChunkingV2Plugin.php
index 6b660fb7c6f..d3673c6bde7 100644
--- a/apps/dav/lib/Upload/ChunkingV2Plugin.php
+++ b/apps/dav/lib/Upload/ChunkingV2Plugin.php
@@ -278,6 +278,9 @@ class ChunkingV2Plugin extends ServerPlugin {
if (!$this->uploadFolder->getStorage()->instanceOfStorage(IChunkedFileWrite::class)) {
throw new StorageInvalidException('Storage does not support chunked file writing');
}
+ if ($this->uploadFolder->getStorage()->instanceOfStorage(ObjectStoreStorage::class) && !$this->uploadFolder->getStorage()->getObjectStore() instanceof IObjectStoreMultiPartUpload) {
+ throw new StorageInvalidException('Storage does not support multi part uploads');
+ }
if ($checkUploadMetadata) {
if ($this->uploadId === null || $this->uploadPath === null) {