[FEATURE] Quality of Life Improvements for Management (#7)

Co-authored-by: Dunemask <dunemask@gmail.com>
Reviewed-on: https://gitea.dunemask.dev/elysium/minecluster/pulls/7
This commit is contained in:
dunemask 2024-01-22 01:01:12 +00:00
parent 6eb4ed3e95
commit 23efaafe1d
18 changed files with 479 additions and 39 deletions

View file

@ -82,7 +82,7 @@ export async function uploadServerItem(serverSpec, file) {
const { path } = serverSpec;
pathSecurityCheck(path);
await useServerFtp(serverSpec, async (c) => {
await c.uploadFrom(fileStream, `${path}/${file.originalname}`);
await c.uploadFrom(fileStream, path);
}).catch(handleError);
}