From 2d95c49500a79677a33068c0011796d19a1ab610 Mon Sep 17 00:00:00 2001 From: Andrey Borysenko Date: Wed, 16 Aug 2023 13:43:38 +0300 Subject: [PATCH] added missing info for actionFile --- lib/Service/ExFilesActionsMenuService.php | 2 ++ src/filesplugin.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/Service/ExFilesActionsMenuService.php b/lib/Service/ExFilesActionsMenuService.php index f366e520..b00bc243 100644 --- a/lib/Service/ExFilesActionsMenuService.php +++ b/lib/Service/ExFilesActionsMenuService.php @@ -153,6 +153,8 @@ public function handleFileAction(string $userId, string $appId, string $fileActi 'directory' => $actionFile['directory'], 'etag' => $actionFile['etag'], 'mime' => $actionFile['mime'], + 'fileType' => $actionFile['fileType'], + 'contentLength' => $actionFile['contentLength'], 'favorite' => $actionFile['favorite'] ?? "false", 'permissions' => $actionFile['permissions'] ], diff --git a/src/filesplugin.js b/src/filesplugin.js index 1c65311a..bb9e8a9e 100644 --- a/src/filesplugin.js +++ b/src/filesplugin.js @@ -33,6 +33,8 @@ state.fileActions.forEach(fileAction => { mime: file.dataset.mime, favorite: file.dataset?.favorite, permissions: file.dataset.permissions, + fileType: file.dataset.type, + contentLength: file.dataset.size, }, }).then((response) => { console.debug('response', response)