fix: show file size on remote shares

Signed-off-by: grnd-alt <git@belakkaf.net>
This commit is contained in:
grnd-alt 2026-02-18 10:30:39 +01:00
parent a6d1fa1fa6
commit e4dcec8d5f
5 changed files with 33 additions and 2 deletions

View file

@ -124,6 +124,7 @@ class RemoteController extends OCSController {
$shareData['permissions'] = $mountPointNode->getPermissions();
$shareData['type'] = $mountPointNode->getType();
$shareData['file_id'] = $mountPointNode->getId();
$shareData['item_size'] = $mountPointNode->getSize();
return $shareData;
}

View file

@ -112,6 +112,7 @@ class ExternalShare extends SnowflakeAwareEntity implements \JsonSerializable {
'permissions' => null,
'mtime' => null,
'type' => null,
'item_size' => null,
];
}

View file

@ -97,6 +97,7 @@ namespace OCA\Files_Sharing;
* share_type: int,
* type: string|null,
* user: string,
* item_size: int|float|null,
* }
*
* @psalm-type Files_SharingSharee = array{

View file

@ -407,7 +407,8 @@
"share_token",
"share_type",
"type",
"user"
"user",
"item_size"
],
"properties": {
"accepted": {
@ -468,6 +469,19 @@
},
"user": {
"type": "string"
},
"item_size": {
"nullable": true,
"anyOf": [
{
"type": "integer",
"format": "int64"
},
{
"type": "number",
"format": "double"
}
]
}
}
},

View file

@ -2526,7 +2526,8 @@
"share_token",
"share_type",
"type",
"user"
"user",
"item_size"
],
"properties": {
"accepted": {
@ -2587,6 +2588,19 @@
},
"user": {
"type": "string"
},
"item_size": {
"nullable": true,
"anyOf": [
{
"type": "integer",
"format": "int64"
},
{
"type": "number",
"format": "double"
}
]
}
}
},