Add fileid and permissions to response of bulk upload

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/33697/head
Côme Chilliet 3 years ago
parent 5509063caa
commit be7082efff
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 3
      apps/dav/lib/BulkUpload/BulkUploadPlugin.php

@ -3,6 +3,7 @@
* @copyright Copyright (c) 2021, Louis Chemineau <louis@chmn.me>
*
* @author Louis Chemineau <louis@chmn.me>
* @author Côme Chilliet <come.chilliet@nextcloud.com>
*
* @license AGPL-3.0
*
@ -95,6 +96,8 @@ class BulkUploadPlugin extends ServerPlugin {
$writtenFiles[$headers['x-file-path']] = [
"error" => false,
"etag" => $node->getETag(),
"fileid" => $node->getId(),
"permissions" => $node->getPermissions(),
];
} catch (\Exception $e) {
$this->logger->error($e->getMessage(), ['path' => $headers['x-file-path']]);

Loading…
Cancel
Save