fix
This commit is contained in:
@@ -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 )=>{
|
||||
{
|
||||
//===============================================
|
||||
|
||||
Reference in New Issue
Block a user