aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-07-24 08:28:29 +0200
committerGitHub <noreply@github.com>2023-07-24 08:28:29 +0200
commit92ea19e6188e57d9be0b6e9e3a0b598ff2282f79 (patch)
tree2e24485932ea5c0b990a99dc94f65a0298ef8b62 /apps
parenta0ba7c2c4e2016290933ba54410e72410b078dbf (diff)
parent5d4a880437b53344f52f1a7f172739e9c16bad60 (diff)
downloadnextcloud-server-92ea19e6188e57d9be0b6e9e3a0b598ff2282f79.tar.gz
nextcloud-server-92ea19e6188e57d9be0b6e9e3a0b598ff2282f79.zip
Merge pull request #39458 from nextcloud/backport/27/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) {