[FIX] Fixed Broken File Uploads
This commit is contained in:
parent
fc90fa8f2a
commit
ff3cb6b013
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ export async function uploadServerItem(serverSpec, file) {
|
||||||
const { path } = serverSpec;
|
const { path } = serverSpec;
|
||||||
pathSecurityCheck(path);
|
pathSecurityCheck(path);
|
||||||
await useServerFtp(serverSpec, async (c) => {
|
await useServerFtp(serverSpec, async (c) => {
|
||||||
await c.uploadFrom(fileStream, `${path}/${file.originalname}`);
|
await c.uploadFrom(fileStream, path);
|
||||||
}).catch(handleError);
|
}).catch(handleError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue