file_name

This commit is contained in:
CHIEFSOFT\ameye
2024-05-24 09:15:38 -04:00
parent cb39e7c684
commit 16e319e44f
+1 -1
View File
@@ -139,7 +139,7 @@ app.post("/upload/resources", upload.array("files"), (req, res) => {
console.log( onefile );
fs.rename(onefile.path, targetDir, function (err) {
fs.rename(onefile.path, targetDir+"/"+onefile.file_name , function (err) {
if (err) throw err
console.log('Successfully renamed - '+onefile.path);
console.log('Start::Database Registration!');