mirror of
https://github.com/lights0123/n-link.git
synced 2025-01-03 15:15:26 +00:00
Fix uploaded file path
This commit is contained in:
parent
a7e90368f2
commit
b88a9c6555
|
@ -116,7 +116,7 @@ class Devices extends Vue implements GenericDevices {
|
||||||
await downloadFile(rpc, cmd.path);
|
await downloadFile(rpc, cmd.path);
|
||||||
} else if (cmd.action === 'upload') {
|
} else if (cmd.action === 'upload') {
|
||||||
if (!('file' in cmd)) return;
|
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') {
|
} else if (cmd.action === 'uploadOs') {
|
||||||
if (!('file' in cmd)) return;
|
if (!('file' in cmd)) return;
|
||||||
await uploadOs(rpc, new Uint8Array(await cmd.file.arrayBuffer()));
|
await uploadOs(rpc, new Uint8Array(await cmd.file.arrayBuffer()));
|
||||||
|
|
Loading…
Reference in a new issue