Skip to content
Next Next commit
Add fileid and permissions to response of bulk upload
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Aug 25, 2022
commit be7082efffff075671077e484abf8a76bfa9c3f8
3 changes: 3 additions & 0 deletions apps/dav/lib/BulkUpload/BulkUploadPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* @copyright Copyright (c) 2021, Louis Chemineau <[email protected]>
*
* @author Louis Chemineau <[email protected]>
* @author Côme Chilliet <[email protected]>
*
* @license AGPL-3.0
*
Expand Down Expand Up @@ -95,6 +96,8 @@ public function httpPost(RequestInterface $request, ResponseInterface $response)
$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']]);
Expand Down