]> source.dussan.org Git - nextcloud-server.git/commitdiff
Call the correct functions to get BulkUpload metadata to return
authorCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 29 Aug 2022 07:14:52 +0000 (09:14 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 29 Aug 2022 07:14:52 +0000 (09:14 +0200)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/dav/lib/BulkUpload/BulkUploadPlugin.php

index d3c0d060b9d867b69b8f44a301159876362f5805..79a1561ef5bfb0404161236d86cc72e9faab9c66 100644 (file)
@@ -96,8 +96,8 @@ class BulkUploadPlugin extends ServerPlugin {
                                $writtenFiles[$headers['x-file-path']] = [
                                        "error" => false,
                                        "etag" => $node->getETag(),
-                                       "fileid" => $node->getId(),
-                                       "permissions" => $node->getPermissions(),
+                                       "fileid" => $node->getFileId(),
+                                       "permissions" => $node->getDavPermissions(),
                                ];
                        } catch (\Exception $e) {
                                $this->logger->error($e->getMessage(), ['path' => $headers['x-file-path']]);