From 1620e16b896875c62237988eddb2c47029e45c1c Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Mon, 1 Apr 2024 12:00:06 +0200 Subject: [PATCH] WebClient: fix move and copy Regression introduced in fc023748c10eab307b0c17d36e57e21dc1a3c332 Signed-off-by: Nicola Murino --- templates/webclient/files.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/templates/webclient/files.html b/templates/webclient/files.html index 55351508..a2dff9b7 100644 --- a/templates/webclient/files.html +++ b/templates/webclient/files.html @@ -1470,9 +1470,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). let filesArray = []; for (let i = 0; i < items.length; i++){ - filesArray.push({ - name: items[i].targetName - }); + filesArray.push(items[i].targetName); } CheckExist.fire({ @@ -1622,9 +1620,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). let filesArray = []; for (let i = 0; i < items.length; i++){ - filesArray.push({ - name: items[i].targetName - }); + filesArray.push(items[i].targetName); } CheckExist.fire({ @@ -1863,7 +1859,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). CheckExist.fire({ operation: "move", - files: [{name: newName}], + files: [newName], path: '{{.CurrentDir}}' }).then((result)=>{ if (result.error) {