diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-07-17 14:09:23 +0200 |
---|---|---|
committer | Daniel <mail@danielkesselberg.de> | 2023-07-23 16:07:21 +0200 |
commit | 5d4a880437b53344f52f1a7f172739e9c16bad60 (patch) | |
tree | fab1b3c74945657829ab7a072e4d1069228a2cc3 /apps/dav | |
parent | dea727f4533e85c10a0cdb987ac6c9b28cd346e0 (diff) | |
download | nextcloud-server-5d4a880437b53344f52f1a7f172739e9c16bad60.tar.gz nextcloud-server-5d4a880437b53344f52f1a7f172739e9c16bad60.zip |
fix: check that object store backend supports multi part uploads
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Upload/ChunkingV2Plugin.php | 3 |
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) { |