mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
fix: check that object store backend supports multi part uploads
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
f52145f775
commit
f537c7b5c6
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue