From b88a9c6555c7dd5ff095b97eb2402bcfe7158d19 Mon Sep 17 00:00:00 2001 From: lights0123 Date: Sun, 22 Nov 2020 18:49:26 -0500 Subject: [PATCH] Fix uploaded file path --- web/components/devices.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/devices.ts b/web/components/devices.ts index 21bbeba..38a7b12 100644 --- a/web/components/devices.ts +++ b/web/components/devices.ts @@ -116,7 +116,7 @@ class Devices extends Vue implements GenericDevices { await downloadFile(rpc, cmd.path); } else if (cmd.action === 'upload') { if (!('file' in cmd)) return; - await uploadFile(rpc, cmd.path + cmd.file.name, new Uint8Array(await cmd.file.arrayBuffer())); + await uploadFile(rpc, `${cmd.path}/${cmd.file.name}`, new Uint8Array(await cmd.file.arrayBuffer())); } else if (cmd.action === 'uploadOs') { if (!('file' in cmd)) return; await uploadOs(rpc, new Uint8Array(await cmd.file.arrayBuffer()));