[FIX] Fixed Broken File Uploads

This commit is contained in:
Dunemask 2024-01-21 17:50:39 -07:00
parent fc90fa8f2a
commit ff3cb6b013

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);
}