Skip to content

Commit

Permalink
Merge pull request #39458 from nextcloud/backport/27/objectstore-with…
Browse files Browse the repository at this point in the history
…out-multipart
  • Loading branch information
juliushaertl committed Jul 24, 2023
2 parents a0ba7c2 + 5d4a880 commit 92ea19e
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 92ea19e

Please sign in to comment.