From b08ad33bcef66b769d9872a8a9e0eb56186ee97d Mon Sep 17 00:00:00 2001 From: Andrey Borysenko Date: Wed, 16 Aug 2023 13:58:26 +0300 Subject: [PATCH] added missing info for actionFile (#44) --- 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)