Skip to content

Commit

Permalink
Merge pull request #39459 from nextcloud/backport/26/objectstore-with…
Browse files Browse the repository at this point in the history
…out-multipart
  • Loading branch information
juliusknorr authored Jul 24, 2023
2 parents 9fa1b73 + f537c7b commit 57b0bf3
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 57b0bf3

Please sign in to comment.