Merge pull request #39459 from nextcloud/backport/26/objectstore-without-multipart

This commit is contained in:
Julius Härtl 2023-07-24 08:28:21 +02:00 committed by GitHub
commit 57b0bf316f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {