mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Add fileid and permissions to response of bulk upload
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
5509063caa
commit
be7082efff
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue