Skip to content

Commit

Permalink
Merge pull request #39432 from nextcloud/objectstore-without-multipart
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl authored Jul 17, 2023
2 parents de4c219 + 9e50f14 commit 6f0086a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/dav/lib/Upload/ChunkingV2Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ private function checkPrerequisites(bool $checkUploadMetadata = true): void {
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) {
Expand Down

0 comments on commit 6f0086a

Please sign in to comment.