From 57c2c168279f12bb2b106b28ee9d805faf67c941 Mon Sep 17 00:00:00 2001 From: Alexander Piskun Date: Wed, 16 Aug 2023 19:22:23 +0300 Subject: [PATCH] FileAction: renamed `contentLength` to `size` Signed-off-by: Alexander Piskun --- lib/Service/ExFilesActionsMenuService.php | 2 +- src/filesplugin.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/ExFilesActionsMenuService.php b/lib/Service/ExFilesActionsMenuService.php index 6df01b31..c568297a 100644 --- a/lib/Service/ExFilesActionsMenuService.php +++ b/lib/Service/ExFilesActionsMenuService.php @@ -155,7 +155,7 @@ public function handleFileAction(string $userId, string $appId, string $fileActi 'mime' => $actionFile['mime'], 'fileType' => $actionFile['fileType'], 'mtime' => $actionFile['mtime'], - 'contentLength' => $actionFile['contentLength'], + 'size' => $actionFile['size'], 'favorite' => $actionFile['favorite'] ?? "false", 'permissions' => $actionFile['permissions'] ], diff --git a/src/filesplugin.js b/src/filesplugin.js index b01d5410..7b2903a4 100644 --- a/src/filesplugin.js +++ b/src/filesplugin.js @@ -34,7 +34,7 @@ state.fileActions.forEach(fileAction => { favorite: file.dataset?.favorite, permissions: file.dataset.permissions, fileType: file.dataset.type, - contentLength: file.dataset.size, + size: file.dataset.size, mtime: file.dataset.mtime, }, }).then((response) => {