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 )=>{ { //===============================================