Friends, search

This commit is contained in:
paoloar77
2022-01-12 00:38:47 +01:00
parent 3b6218d2ba
commit 4158731731
5 changed files with 75 additions and 22 deletions

View File

@@ -1585,7 +1585,7 @@ function uploadFile(req, res, version) {
form.on('file', async function(name, file) {
try {
console.log('Uploaded ' + file.name);
const mydir = tools.getdirByIdApp(idapp) + dirmain + '/upload/' + dir;
const mydir = tools.getdirByIdApp(idapp) + dirmain + server_constants.DIR_UPLOAD + '/' + dir;
// Create Dir if doesn't exist:
tools.mkdirpath(mydir);