From cb39e7c68454772e0a62dcd216be226df373f39f Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 24 May 2024 09:11:51 -0400 Subject: [PATCH] fix --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index d98b1bf..2cb77ff 100644 --- a/index.js +++ b/index.js @@ -128,13 +128,11 @@ app.post("/upload/resources", upload.array("files"), (req, res) => { fs.mkdirSync(dir); } + let targetDir = destinationDir+'/MYFILES'; if (!fs.existsSync(targetDir)) { fs.mkdirSync(targetDir); } - let targetDir = destinationDir+'/MYFILES'; - - req.files.map(( onefile )=>{ { //===============================================